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

Andreas Jung andreas@digicool.com
Fri, 11 Jan 2002 09:51:32 -0500


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

Modified Files:
      Tag: ajung-textindexng-branch
	testProximityLexicon.py 
Log Message:
ProximityLexicon is now fully unicode aware. The proximity algorithm
is applied against a transformed ASCII version of the string. 



=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/tests/testProximityLexicon.py 1.1.2.4 => 1.1.2.5 ===
 
 
+    def testSoundexUnicode(self):
+        """ Soundex unicode test """
+
+        s = unicode('auf einen alle Flugplätze der Taliban zerstört worden',
+                'latin1')
+        self.doTest(s,'soundex')
+        self.algorithmTest(self._soundexLatin1)
+
+
     def testMetaphoneAscii(self):
         """ Soundex Ascii test """
 
@@ -105,6 +114,13 @@
         self.doTest(s,'metaphone')
         self.algorithmTest(self._metaphoneLatin1)
 
+
+    def testMetaphoneUnicode(self):
+        """ Metaphone Unicode test """
+
+        s = unicode('auf einen alle Flugplätze der Taliban zerstört worden',
+                'latin1')
+        self.doTest(s,'metaphone')
 
     def printLexicon(self):