[KoCo-CVS] [Commit] cjkcodecs/tests test_encoding_cp932.py
Brought to you by:
perky
From: Hye-Shik C. <pe...@us...> - 2003-06-20 09:12:22
|
perky 03/06/20 02:12:20 Modified: tests test_encoding_cp932.py Log: 0x80 is UNDEFINED valid single byte now. Revision Changes Path 1.5 +5 -5 cjkcodecs/tests/test_encoding_cp932.py Index: test_encoding_cp932.py =================================================================== RCS file: /cvsroot/koco/cjkcodecs/tests/test_encoding_cp932.py,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- test_encoding_cp932.py 6 Jun 2003 05:55:30 -0000 1.4 +++ test_encoding_cp932.py 20 Jun 2003 09:12:20 -0000 1.5 @@ -27,7 +27,7 @@ # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # -# $Id: test_encoding_cp932.py,v 1.4 2003/06/06 05:55:30 perky Exp $ +# $Id: test_encoding_cp932.py,v 1.5 2003/06/20 09:12:20 perky Exp $ # from test import test_support @@ -39,11 +39,11 @@ tstring = test_multibytecodec_support.load_teststring('shift_jis') errortests = ( # invalid bytes - ("abc\x80\x80\x82\x84", "strict", None), + ("abc\x81\x00\x81\x00\x82\x84", "strict", None), ("abc\xf8", "strict", None), - ("abc\x80\x80\x82\x84", "replace", u"abc\ufffd\uff44"), - ("abc\x80\x80\x82\x84\x88", "replace", u"abc\ufffd\uff44\ufffd"), - ("abc\x80\x80\x82\x84", "ignore", u"abc\uff44"), + ("abc\x81\x00\x82\x84", "replace", u"abc\ufffd\uff44"), + ("abc\x81\x00\x82\x84\x88", "replace", u"abc\ufffd\uff44\ufffd"), + ("abc\x81\x00\x82\x84", "ignore", u"abc\uff44"), # sjis vs cp932 ("\\\x7e", "replace", u"\\\x7e"), ("\x81\x5f\x81\x61\x81\x7c", "replace", u"\uff3c\u2225\uff0d"), |