[Zope-CVS] CVS: Products/ZCTextIndex/tests - testQueryParser.py:1.1.2.5
Tim Peters
tim.one@comcast.net
Sun, 5 May 2002 21:11:50 -0400
Update of /cvs-repository/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv17599/tests
Modified Files:
Tag: TextIndexDS9-branch
testQueryParser.py
Log Message:
Guido's change to the definition of ATOM left this test failing.
=== Products/ZCTextIndex/tests/testQueryParser.py 1.1.2.4 => 1.1.2.5 ===
AndNode([AtomNode("a"), NotNode(AtomNode("b"))]))
+ self.expect("foo bar", AtomNode("foo bar"))
+
+ self.expect("((foo bar))", AtomNode("foo bar"))
+
def testParseFailures(self):
self.failure("")
self.failure("not")
@@ -71,12 +75,11 @@
self.failure("not foo")
self.failure(")")
self.failure("(")
- self.failure("foo bar")
self.failure("foo OR")
self.failure("foo AND")
self.failure("OR foo")
self.failure("and foo")
- self.failure("(foo bar)")
+ self.failure("(foo) bar")
self.failure("(foo OR)")
self.failure("(foo AND)")
self.failure("(NOT foo)")