Skip to content

Commit

Permalink
Format test_text_cleaners.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shavit committed Sep 30, 2024
1 parent 4ea85b0 commit 1576006
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions tests/text_tests/test_text_cleaners.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ def test_multilingual_phoneme_cleaners() -> None:

def test_normalize_nfc() -> None:
test_cases = [
("Häagen-Dazs", "Häagen-Dazs"),
("你好!", "你好!"),
("𝔄𝔅ℭ⓵⓶⓷︷,︸,i⁹,i₉,㌀,¼", "𝔄𝔅ℭ⓵⓶⓷︷,︸,i⁹,i₉,㌀,¼"),
("é", "é"),
("e\u0301", "é"),
("a\u0300", "à"),
("a\u0327", "a̧"),
("na\u0303", "nã"),
("o\u0302u", "ôu"),
("n\u0303", "ñ"),
(u"\u4E2D\u56FD", u"中国"),
(u"niño", u"niño"),
(u"a\u0308", u"ä"),
(u"\u3053\u3093\u306b\u3061\u306f", u"こんにちは"),
(u"\u03B1\u03B2", u"αβ")
("Häagen-Dazs", "Häagen-Dazs"),
("你好!", "你好!"),
("𝔄𝔅ℭ⓵⓶⓷︷,︸,i⁹,i₉,㌀,¼", "𝔄𝔅ℭ⓵⓶⓷︷,︸,i⁹,i₉,㌀,¼"),
("é", "é"),
("e\u0301", "é"),
("a\u0300", "à"),
("a\u0327", "a̧"),
("na\u0303", "nã"),
("o\u0302u", "ôu"),
("n\u0303", "ñ"),
("\u4E2D\u56FD", "中国"),
("niño", "niño"),
("a\u0308", "ä"),
("\u3053\u3093\u306b\u3061\u306f", "こんにちは"),
("\u03B1\u03B2", "αβ"),
]
for arg, expect in test_cases:
assert normalize_nfc(arg) == expect

0 comments on commit 1576006

Please sign in to comment.