We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ad0d7f + 4310e5b commit 15bd161Copy full SHA for 15bd161
tests/test_rapidfuzz.py
@@ -0,0 +1,13 @@
1
+import unittest
2
+
3
+# needed for the Word Error Rate metric:
4
+# competitions/metrics/python/deployed_metrics/general_use_metrics/word_error_rate.py
5
+import rapidfuzz
6
7
+class TestRapidfuzz(unittest.TestCase):
8
+ def test_distance(self):
9
+ distance = rapidfuzz.distance.Levenshtein.distance(
10
+ 'Levenshtein', 'Lenvinsten'
11
+ )
12
13
+ self.assertEqual(4, distance)
0 commit comments