[KoCo-CVS] [Commit] KoreanCodecs/test test_cp949.py test_euc_kr.py
Brought to you by:
perky
From: Chang <pe...@us...> - 2002-04-28 21:30:47
|
perky 02/04/27 17:55:28 Modified: test test_cp949.py test_euc_kr.py Log: - Add error handling tests for uncompleted characters Revision Changes Path 1.4 +2 -0 KoreanCodecs/test/test_cp949.py Index: test_cp949.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/test/test_cp949.py,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- test_cp949.py 16 Mar 2002 02:17:01 -0000 1.3 +++ test_cp949.py 28 Apr 2002 00:55:28 -0000 1.4 @@ -9,7 +9,9 @@ errortests = ( # invalid bytes ("abc\x80\x80\xc1\xc4", "strict", None), + ("abc\xc8", "strict", None), ("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"), ) 1.4 +2 -0 KoreanCodecs/test/test_euc_kr.py Index: test_euc_kr.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/test/test_euc_kr.py,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- test_euc_kr.py 16 Mar 2002 02:17:01 -0000 1.3 +++ test_euc_kr.py 28 Apr 2002 00:55:28 -0000 1.4 @@ -9,7 +9,9 @@ errortests = ( # invalid bytes ("abc\x80\x80\xc1\xc4", "strict", None), + ("abc\xc8", "strict", None), ("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"), ) |