add test to nfc-nfd edge case
This commit is contained in:
parent
9b61b2ecaf
commit
7179ad0a89
|
@ -776,6 +776,17 @@ class TestAssert_reprcompare:
|
||||||
msg = "\n".join(expl)
|
msg = "\n".join(expl)
|
||||||
assert msg
|
assert msg
|
||||||
|
|
||||||
|
def test_nfc_nfd_same_string(self) -> None:
|
||||||
|
# issue 3426
|
||||||
|
left = 'hyv\xe4'
|
||||||
|
right = 'hyva\u0308'
|
||||||
|
expl = callequal(left, right)
|
||||||
|
assert expl == [
|
||||||
|
"'hyvä' == 'hyvä'",
|
||||||
|
'Strings are different but normalize to the same string. Comparing their utf-8 encoding.',
|
||||||
|
"At index 3 diff: b'\\xc3' != b'a'"
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class TestAssert_reprcompare_dataclass:
|
class TestAssert_reprcompare_dataclass:
|
||||||
def test_dataclasses(self, pytester: Pytester) -> None:
|
def test_dataclasses(self, pytester: Pytester) -> None:
|
||||||
|
|
Loading…
Reference in New Issue