Esempio n. 1
0
 public function assembleListExpression(ListExpression $list)
 {
     $values = $this->assembleSegments((array) $list->getValue());
     return '[' . implode(',', $values) . ']';
 }
 public function testListExpression()
 {
     $this->assertEquals("['test',1]", CqlAssembler::stringify(ListExpression::create(['test', 1])));
     $this->assertEquals("\"testfield\" - ['test']", CqlAssembler::stringify(SubtractExpression::create(FieldExpression::create('testfield'), ListExpression::create('test'))));
 }