ruby-changes:28363
From: knu <ko1@a...>
Date: Tue, 23 Apr 2013 10:27:33 +0900 (JST)
Subject: [ruby-changes:28363] knu:r40415 (trunk): * test/ruby/test_module.rb
knu 2013-04-23 10:27:23 +0900 (Tue, 23 Apr 2013) New Revision: 40415 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40415 Log: * test/ruby/test_module.rb (TestModule#test_const_get_invalid_name) (test_const_defined_invalid_name): Fix expected values. Modified files: trunk/ChangeLog trunk/test/ruby/test_module.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 40414) +++ ChangeLog (revision 40415) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Apr 23 10:26:50 2013 Akinori MUSHA <knu@i...> + + * test/ruby/test_module.rb + (TestModule#test_const_get_invalid_name) + (test_const_defined_invalid_name): Fix expected values. + Tue Apr 23 09:51:26 2013 Akinori MUSHA <knu@i...> * string.c (rb_str_inspect): NUL should not be represented as "\0" Index: test/ruby/test_module.rb =================================================================== --- test/ruby/test_module.rb (revision 40414) +++ test/ruby/test_module.rb (revision 40415) @@ -609,7 +609,7 @@ class TestModule < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L609 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 https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L619 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/