[OLINGO-434] Added optional WSP between MINUS and property

This commit is contained in:
Michael Bolz 2014-10-07 15:43:04 +02:00
parent 4a4b110f99
commit 5c237fbe57
2 changed files with 2 additions and 1 deletions

View File

@ -191,7 +191,7 @@ contextFragment : REST; // the context fragment is only required on the clie
commonExpr : OPEN commonExpr CLOSE #altPharenthesis
| vE1=commonExpr (WSP HAS WSP) vE2=commonExpr #altHas
| methodCallExpr #altMethod
| ( unary WSP ) commonExpr #altUnary
| ( unary WSP? ) commonExpr #altUnary
| anyExpr #altAny
| allExpr #altAll
| memberExpr #altMember

View File

@ -570,6 +570,7 @@ public class TestUriParserImpl {
public void testUnary() throws UriParserException {
testFilter.runESabc("not a").isCompr("<not <a>>");
testFilter.runESabc("- a eq a").isCompr("<<- <a>> eq <a>>");
testFilter.runESabc("-a eq a").isCompr("<<- <a>> eq <a>>");
}
@Test