diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-28 02:40:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-28 02:40:46 +0000 |
commit | 6b3b9965421f8a8320af0f5c10d285f5a2739d27 (patch) | |
tree | 6689e8d252ca17f1f90626d7ade4b144dbfccdd7 /test/ruby/test_array.rb | |
parent | a3facc8132b8589a5bd02f89bc029fe71d6b3919 (diff) | |
download | ruby-6b3b9965421f8a8320af0f5c10d285f5a2739d27.tar.gz |
preserve encodings in error messages
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_array.rb')
-rw-r--r-- | test/ruby/test_array.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index ea551dbeba..74da8c1dab 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -1543,6 +1543,8 @@ class TestArray < Test::Unit::TestCase [[:first_one, :ok], :not_ok].to_h } assert_equal "wrong element type Symbol at 1 (expected array)", e.message + array = [eval("class C\u{1f5ff}; self; end").new] + assert_raise_with_message(TypeError, /C\u{1f5ff}/) {array.to_h} e = assert_raise(ArgumentError) { [[:first_one, :ok], [1, 2], [:not_ok]].to_h } |