summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-15 08:16:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-15 08:16:40 +0000
commitc1b4b10a120b2f0b206414161d4f208fb1c37e62 (patch)
tree120b0d96f874035cbf48a5439aa89ef6cce29dd3 /test
parent3ea61a2cf5188ac436284d9cc9f8c444df9995c0 (diff)
numeric.c: preserve encoding
* numeric.c (num_sadded): preserve encoding of error message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_numeric.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_numeric.rb b/test/ruby/test_numeric.rb
index fc4f39a91d..7fbb8e955d 100644
--- a/test/ruby/test_numeric.rb
+++ b/test/ruby/test_numeric.rb
@@ -58,8 +58,8 @@ class TestNumeric < Test::Unit::TestCase
def test_numeric
a = Numeric.new
- assert_raise(TypeError) { def a.foo; end }
- assert_raise(TypeError) { eval("def a.\u3042; end") }
+ assert_raise_with_message(TypeError, /foo/) { def a.foo; end }
+ assert_raise_with_message(TypeError, /\u3042/) { eval("def a.\u3042; end") }
assert_raise(TypeError) { a.dup }
end