Browse Source

Tests: Add a unicode test

master
Nathan Bergey 2 years ago
parent
commit
2d2bda25db
  1. 3
      test/test_bm.py

3
test/test_bm.py

@ -11,6 +11,9 @@ from src.bm import Bm
("ANPANMAN", "PAN", 2), ("ANPANMAN", "PAN", 2),
("ANPANMAN", "ANPAN", 0), ("ANPANMAN", "ANPAN", 0),
("ANPANMAN", "BIKINMAN", -1), ("ANPANMAN", "BIKINMAN", -1),
# Other useful test cases:
("ユニコード", "コード", 2),
]) ])
def test_bm(text, pattern, expected): def test_bm(text, pattern, expected):
bm = Bm(text, pattern) bm = Bm(text, pattern)

Loading…
Cancel
Save