diff options
| author | Hye-Shik Chang <hyeshik@gmail.com> | 2007-08-20 06:49:18 (GMT) |
|---|---|---|
| committer | Hye-Shik Chang <hyeshik@gmail.com> | 2007-08-20 06:49:18 (GMT) |
| commit | 2390104d81fb90c525fb353589837fc66837e5ff (patch) | |
| tree | 873e11368d5a0759df39bfaaf98493c31ac5f9df /Lib/test/test_codecencodings_kr.py | |
| parent | c553f4290766e0a9b713af7c120b9c2a0af1df64 (diff) | |
| download | cpython-2390104d81fb90c525fb353589837fc66837e5ff.zip cpython-2390104d81fb90c525fb353589837fc66837e5ff.tar.gz cpython-2390104d81fb90c525fb353589837fc66837e5ff.tar.bz2 | |
Add cheot-ga-keut composed make-up sequence support in EUC-KR codec.
Diffstat (limited to 'Lib/test/test_codecencodings_kr.py')
| -rw-r--r-- | Lib/test/test_codecencodings_kr.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Lib/test/test_codecencodings_kr.py b/Lib/test/test_codecencodings_kr.py index a30eaf9..8c866a9 100644 --- a/Lib/test/test_codecencodings_kr.py +++ b/Lib/test/test_codecencodings_kr.py @@ -30,6 +30,24 @@ class Test_EUCKR(test_multibytecodec_support.TestBase, unittest.TestCase): ("abc\x80\x80\xc1\xc4", "replace", u"abc\ufffd\uc894"), ("abc\x80\x80\xc1\xc4\xc8", "replace", u"abc\ufffd\uc894\ufffd"), ("abc\x80\x80\xc1\xc4", "ignore", u"abc\uc894"), + + # composed make-up sequence errors + ("\xa4\xd4", "strict", None), + ("\xa4\xd4\xa4", "strict", None), + ("\xa4\xd4\xa4\xb6", "strict", None), + ("\xa4\xd4\xa4\xb6\xa4", "strict", None), + ("\xa4\xd4\xa4\xb6\xa4\xd0", "strict", None), + ("\xa4\xd4\xa4\xb6\xa4\xd0\xa4", "strict", None), + ("\xa4\xd4\xa4\xb6\xa4\xd0\xa4\xd4", "strict", u"\uc4d4"), + ("\xa4\xd4\xa4\xb6\xa4\xd0\xa4\xd4x", "strict", u"\uc4d4x"), + ("a\xa4\xd4\xa4\xb6\xa4", "replace", u"a\ufffd"), + ("\xa4\xd4\xa3\xb6\xa4\xd0\xa4\xd4", "strict", None), + ("\xa4\xd4\xa4\xb6\xa3\xd0\xa4\xd4", "strict", None), + ("\xa4\xd4\xa4\xb6\xa4\xd0\xa3\xd4", "strict", None), + ("\xa4\xd4\xa4\xff\xa4\xd0\xa4\xd4", "replace", u"\ufffd"), + ("\xa4\xd4\xa4\xb6\xa4\xff\xa4\xd4", "replace", u"\ufffd"), + ("\xa4\xd4\xa4\xb6\xa4\xd0\xa4\xff", "replace", u"\ufffd"), + ("\xc1\xc4", "strict", u"\uc894"), ) class Test_JOHAB(test_multibytecodec_support.TestBase, unittest.TestCase): |
