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

Andreas Jung andreas@digicool.com
Wed, 6 Feb 2002 13:45:28 -0500


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

Modified Files:
      Tag: ajung-textindexng-branch
	testTextIndexNG.py 
Log Message:
added tests for stopwords


=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/tests/testTextIndexNG.py 1.1.2.3 => 1.1.2.4 ===
 
 
+    def testStopWords(self):
+
+        self._init(arguments(
+                splitterCasefolding = 1,
+                useGlobbing = 0,              
+                stopWords = {'quick':None,'brown':None,'fox':None}
+                ))
+        
+        self.search('QUICK',  []  )
+        self.search('quick',  []  )
+        self.search('dog',    [2] )
+        
+
+
     def testCombinedQueriesGlobbingOff(self):
 
         self._init(arguments(