diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-01-01 13:11:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-01-01 13:11:24 +0000 |
commit | 45379828f740ff2b60bb16f5fec3a17bd952e07d (patch) | |
tree | 68a8ccaee683eb4a0bd385a83e854aaa72a78e91 /test/ruby/test_transcode.rb | |
parent | 41d42a59373a53754b7e3de3b3509f459832145e (diff) |
test_transcode.rb: add messages
* test/ruby/test_transcode.rb (test_valid_dummy_encoding): add
assertion messages and suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_transcode.rb')
-rw-r--r-- | test/ruby/test_transcode.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_transcode.rb b/test/ruby/test_transcode.rb index 74190daba7..5f3f51a676 100644 --- a/test/ruby/test_transcode.rb +++ b/test/ruby/test_transcode.rb @@ -2085,10 +2085,10 @@ class TestTranscode < Test::Unit::TestCase bug9314 = '[ruby-core:59354] [Bug #9314]' assert_separately(%W[- -- #{bug9314}], <<-'end;') bug = ARGV.shift - result = assert_nothing_raised(TypeError) {break "test".encode(Encoding::UTF_16)} - assert_equal("\xFE\xFF\x00t\x00e\x00s\x00t", result.b) - result = assert_nothing_raised(TypeError) {break "test".encode(Encoding::UTF_32)} - assert_equal("\x00\x00\xFE\xFF\x00\x00\x00t\x00\x00\x00e\x00\x00\x00s\x00\x00\x00t", result.b) + result = assert_nothing_raised(TypeError, bug) {break "test".encode(Encoding::UTF_16)} + assert_equal("\xFE\xFF\x00t\x00e\x00s\x00t", result.b, bug) + result = assert_nothing_raised(TypeError, bug) {break "test".encode(Encoding::UTF_32)} + assert_equal("\x00\x00\xFE\xFF\x00\x00\x00t\x00\x00\x00e\x00\x00\x00s\x00\x00\x00t", result.b, bug) end; end end |