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

Andreas Jung andreas@digicool.com
Wed, 20 Mar 2002 18:59:42 -0500


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

Modified Files:
      Tag: ajung-textindexng-branch
	testGlobbingLexiconNG.py 
Log Message:
minor adjustements for new GlobbingLexicon code


=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/tests/testGlobbingLexiconNG.py 1.1.2.3 => 1.1.2.4 ===
 
         L = self._lexicon
-
         s = "the quick brown fox jumps over the lazy dog"
-        words = s.split()
-
-        wids = {}
-        for word in words:
-            wids[word] = L.getWordId(word)
 
+        words = s.split()
+        wids  = L.getWordIdList(words) 
         c = self._cmp
 
         apply(self.assertEqual, c('the', 't*'))
@@ -88,14 +84,10 @@
         """ test Latin1 functionality """
 
         L = self._lexicon
-
         s = 'Bei den dreitägigen Angriffen seien auch bis'
-        words = s.split()
-
-        wids = {}
-        for word in words:
-            wids[word] = L.getWordId(word)
 
+        words = s.split()
+        wids  = L.getWordIdList(words) 
         c = self._cmp
 
         apply(self.assertEqual, c('seien', 's*'))
@@ -131,14 +123,10 @@
             return
 
         L = self._lexicon
-
         s = unicode('dreitägigen seien','latin1')
-        words = s.split()
-
-        wids = {}
-        for word in words:
-            wids[word] = L.getWordId(word)
 
+        words = s.split()
+        wids  = L.getWordIdList(words) 
         c = self._cmp
 
         apply(self.assertEqual, c('seien', 's*'))