test(normalize): zlepek nazwiska nie przechodzi przez separator feat/ft
Regula sklejki sasiednich czlonow (JoannaAngel, Bonnieb) nie byla pilnowana na granicy obsady: przy martwym separatorze "Dickft" i "Paigefeat" wychodzily jako trafienia. Trzy przypadki, ktore na starym regexie daly True, a teraz daja False. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
bfa3444de2
commit
40865d6ce8
1 changed files with 5 additions and 0 deletions
|
|
@ -87,6 +87,11 @@ def test_strip_accents_idempotent() -> None:
|
|||
("Sasha Paige ft.Martin Spell", "Martin Spell", True),
|
||||
# ft wewnatrz slowa to nie separator.
|
||||
("Craft Beer Night", "Craft Beer", True),
|
||||
# Zlepek tez nie przechodzi przez separator: „dick" i „ft" to sasiednie czlony
|
||||
# tylko dopoki tytul nie jest ciety, a byly sklejane w jedno nazwisko.
|
||||
("Twins Sasha Paige Share the Dick ft. Martin Spell", "Dickft", False),
|
||||
("Sasha Paige feat Martin Spell", "Paigefeat", False),
|
||||
("Sasha Paige ft. Martin Spell", "Paige Ft Martin", False),
|
||||
],
|
||||
)
|
||||
def test_person_named_in(title: str, person: str, expected: bool) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue