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 | 4191a6b90d3eeb63a31609dba29a1904efee3738 (patch) | |
tree | 6689e8d252ca17f1f90626d7ade4b144dbfccdd7 /test/ruby/test_exception.rb | |
parent | 7d49923e9e9a9d1a01f3183fd798258e9d289da0 (diff) |
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_exception.rb')
-rw-r--r-- | test/ruby/test_exception.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index b4567d9187..af69d86d6b 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -302,6 +302,10 @@ class TestException < Test::Unit::TestCase assert_raise_with_message(TypeError, /C\u{4032}/) do [*o] end + obj = eval("class C\u{1f5ff}; self; end").new + assert_raise_with_message(TypeError, /C\u{1f5ff}/) do + Class.new {include obj} + end end def test_errat |