1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_transcode.rb: added two comments

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
duerst 2008-07-22 10:39:30 +00:00
parent 818e1de104
commit ba3fe885d5
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Tue Jul 22 19:38:38 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
* test/ruby/test_transcode.rb: added two comments
Tue Jul 22 18:08:34 2008 NAKAMURA Usaku <usa@ruby-lang.org> Tue Jul 22 18:08:34 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* README.EXT, README.EXT.ja: mention about FIX2LONG and NUM2LONG. * README.EXT, README.EXT.ja: mention about FIX2LONG and NUM2LONG.

View file

@ -258,8 +258,8 @@ class TestTranscode < Test::Unit::TestCase
assert_raise(RuntimeError) { "\x1b(A".encode("utf-8", "iso-2022-jp") } assert_raise(RuntimeError) { "\x1b(A".encode("utf-8", "iso-2022-jp") }
assert_raise(RuntimeError) { "\x1b$(A".encode("utf-8", "iso-2022-jp") } assert_raise(RuntimeError) { "\x1b$(A".encode("utf-8", "iso-2022-jp") }
assert_equal("\uff71\uff72\uff73\uff74\uff75", assert_equal("\uff71\uff72\uff73\uff74\uff75",
"\x1b(I12345\x1b(B".force_encoding("iso-2022-jp").encode("utf-8")) "\x1b(I12345\x1b(B".force_encoding("iso-2022-jp").encode("utf-8")) # JIS X 0201 ァィゥェォ
assert_equal("\u9299", "\x1b$(Dd!\x1b(B".encode("utf-8", "iso-2022-jp")) assert_equal("\u9299", "\x1b$(Dd!\x1b(B".encode("utf-8", "iso-2022-jp")) # JIS X 0212 区68 点01 銙
assert_raise(RuntimeError) { "\x1b$C".encode("utf-8", "iso-2022-jp") } assert_raise(RuntimeError) { "\x1b$C".encode("utf-8", "iso-2022-jp") }
assert_raise(RuntimeError) { "\x1e".encode("utf-8", "iso-2022-jp") } assert_raise(RuntimeError) { "\x1e".encode("utf-8", "iso-2022-jp") }
assert_raise(RuntimeError) { "\x80".encode("utf-8", "iso-2022-jp") } assert_raise(RuntimeError) { "\x80".encode("utf-8", "iso-2022-jp") }