aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-23 01:27:23 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-23 01:27:23 +0000
commit0a13d383be19c7feb57989e431744a937be832a0 (patch)
treeb0b49ff99ecab9a0e814e330a44b3b6d92621943 /test
parent8c5b6ca580a224b701ced54de630a4bf535e579d (diff)
downloadruby-0a13d383be19c7feb57989e431744a937be832a0.tar.gz
* test/ruby/test_module.rb
(TestModule#test_const_get_invalid_name) (test_const_defined_invalid_name): Fix expected values. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_module.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index a84aff2004..75fd81247a 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -609,7 +609,7 @@ class TestModule < Test::Unit::TestCase
assert_raise(TypeError, bug5084) { c1.const_get(1) }
bug7574 = '[ruby-dev:46749]'
e = assert_raise(NameError) { Object.const_get("String\0") }
- assert_equal("wrong constant name \"String\\0\"", e.message, bug7574)
+ assert_equal("wrong constant name \"String\\000\"", e.message, bug7574)
end
def test_const_defined_invalid_name
@@ -619,7 +619,7 @@ class TestModule < Test::Unit::TestCase
assert_raise(TypeError, bug5084) { c1.const_defined?(1) }
bug7574 = '[ruby-dev:46749]'
e = assert_raise(NameError) { Object.const_defined?("String\0") }
- assert_equal("wrong constant name \"String\\0\"", e.message, bug7574)
+ assert_equal("wrong constant name \"String\\000\"", e.message, bug7574)
end
def test_const_get_no_inherited