mirror of
https://github.com/qurator-spk/dinglehopper.git
synced 2025-07-12 11:59:58 +02:00
🚧 dinglehopper: Guarantee NFC + rename from_text → from_str
This commit is contained in:
parent
7843824eaf
commit
a17ee2afec
5 changed files with 29 additions and 13 deletions
|
@ -20,7 +20,7 @@ def test_text():
|
|||
|
||||
|
||||
def test_normalization_check():
|
||||
with pytest.raises(ValueError, match=r'.*is not normalized.*'):
|
||||
with pytest.raises(ValueError, match=r'.*is not in NFC.*'):
|
||||
ExtractedText('foo', None, None, unicodedata.normalize('NFD', 'Schlyñ'))
|
||||
assert ExtractedText('foo', None, None, unicodedata.normalize('NFC', 'Schlyñ'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue