[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG/tests - testProximityLexicon.py:1.1.2.6
Andreas Jung
andreas@digicool.com
Sat, 12 Jan 2002 14:06:07 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG/tests
In directory cvs.zope.org:/tmp/cvs-serv8800/tests
Modified Files:
Tag: ajung-textindexng-branch
testProximityLexicon.py
Log Message:
completed tests
=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/tests/testProximityLexicon.py 1.1.2.5 => 1.1.2.6 ===
_soundexAscii = {
-
+ 'brown' : ['braun','Brun','braune','browne'],
+ 'quick' : ['qicke','quicke','quicky','qwik'],
}
_soundexLatin1 = {
-
+ 'alle' : ['ale','ahle','aale','al'],
+ 'einen' : ['eihnen','einnen','eihnnen'],
+ 'zerstört' : ['zerstoert','zerstörd','zersdörd','zerzdoerd'],
}
def doTest(self,s, algorithm):
@@ -71,7 +74,7 @@
i1 = self._lexicon.get(key)
i2 = self._lexicon.get(word)
- self.assertEqual( len(difference(i1,i2)), 0)
+ self.assertEqual( len(difference(i1,i2)), 0, ( key,word))
def testSoundexAscii(self):