[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG/tests - testTextIndexNG.py:1.1.2.5

Andreas Jung andreas@digicool.com
Thu, 7 Feb 2002 16:10:32 -0500


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG/tests
In directory cvs.zope.org:/tmp/cvs-serv6997/tests

Modified Files:
      Tag: ajung-textindexng-branch
	testTextIndexNG.py 
Log Message:
updated combined globbing test


=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/tests/testTextIndexNG.py 1.1.2.4 => 1.1.2.5 ===
 from Products.PluginIndexes.TextIndexNG import TextIndexNG
 
-verbose = 0 
+verbose = 1 
 timed_statistics = 0
 
 class TO:
@@ -140,9 +140,23 @@
         self.search('alle and sucks',   [] )
 
 
+    def testCombinedQueriesGlobbingOn(self):
+
+        self._init(arguments(
+                splitterCasefolding = 1,
+                useGlobbing = 1,              
+                ))
+
+        self.search('simple and t*',    [1] )
+        self.search('lazy or alle',     [2,3,4] )
+        self.search('alle and sucks',   [] )
+        self.search('brow* or all*',    [2,3,4] )
+
+
+
 
 def test_suite():
-   return unittest.makeSuite(Tests,'test')
+   return unittest.makeSuite(Tests)
 
 def main():
    unittest.TextTestRunner().run(test_suite())