Skip to content

Commit 88a86a1

Browse files
committed
deactivate bitparallel LCS
The algorithm to find the longest common subsequence after calculating it in bitparall appears to have a bug. Deactivate it until this bug is fixed
1 parent 7139004 commit 88a86a1

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1
1+
1.0.2

src/rapidfuzz-cpp

Submodule rapidfuzz-cpp updated from ec59b2d to f23d0c6

src/rapidfuzz/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"""
44
__author__ = "Max Bachmann"
55
__license__ = "MIT"
6-
__version__ = "1.0.1"
6+
__version__ = "1.0.2"
77

88
from rapidfuzz import process, fuzz, utils, levenshtein, string_metric

tests/test_fuzz.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ def testWRatioUnicode(self):
7777
def testQRatioUnicode(self):
7878
self.assertEqual(fuzz.WRatio(self.s1, self.s1a), 100)
7979

80+
def testIssue76(self):
81+
self.assertAlmostEqual(fuzz.partial_ratio("physics 2 vid", "study physics physics 2"), 81.81818, places=4)
82+
self.assertEqual(fuzz.partial_ratio("physics 2 vid", "study physics physics 2 video"), 100)
83+
8084

8185
@pytest.mark.parametrize("scorer", scorers)
8286
def test_empty_string(scorer):

0 commit comments

Comments
 (0)