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.
1 parent 9eee1a0 commit d935f12Copy full SHA for d935f12
setup.py
@@ -90,7 +90,7 @@ def build_extensions(self):
90
91
setup(
92
name='pylcs',
93
- version='0.0.3',
+ version='0.0.4',
94
author='Meteorix',
95
author_email='[email protected]',
96
url='https://github.com/Meteorix/pylcs',
tests/test_pylcs.py
@@ -24,3 +24,11 @@ def test_lcs2():
24
def test_lcs2_of_list():
25
assert pylcs.lcs2_of_list("aaa", ["aabbbaa"] * 10) == [2] * 10
26
assert pylcs.lcs2_of_list("aaa你好", ["好呀你"] * 10) == [1] * 10
27
+
28
29
+def test_edit_distance():
30
+ assert pylcs.edit_distance("aaa", "bbb") == 3
31
+ assert pylcs.edit_distance("aaa", "aabbbaa") == 4
32
+ assert pylcs.edit_distance("你好", "中国") == 2
33
+ assert pylcs.edit_distance("aaa你好", "你好呀") == 4
34
0 commit comments