Merge pull request #43 from realm/al/contains-test

Test contains can be used as a property name in the parser
This commit is contained in:
Ari Lazier 2016-03-01 13:45:43 -08:00
commit 062db0e95d
1 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,13 @@ static std::vector<std::string> valid_queries = {
"0 contains 0",
"0 BeGiNsWiTh 0",
"0 ENDSWITH 0",
"contains contains 'contains'",
"beginswith beginswith 'beginswith'",
"endswith endswith 'endswith'",
"NOT NOT != 'NOT'",
"AND == 'AND' AND OR == 'OR'",
// FIXME - bug
// "truepredicate == 'falsepredicate' && truepredicate",
// atoms/groups
"(0=0)",