* 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
This commit is contained in:
parent
8c5b6ca580
commit
0a13d383be
@ -1,3 +1,9 @@
|
|||||||
|
Tue Apr 23 10:26:50 2013 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
|
* 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@iDaemons.org>
|
Tue Apr 23 09:51:26 2013 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* string.c (rb_str_inspect): NUL should not be represented as "\0"
|
* string.c (rb_str_inspect): NUL should not be represented as "\0"
|
||||||
|
@ -609,7 +609,7 @@ class TestModule < Test::Unit::TestCase
|
|||||||
assert_raise(TypeError, bug5084) { c1.const_get(1) }
|
assert_raise(TypeError, bug5084) { c1.const_get(1) }
|
||||||
bug7574 = '[ruby-dev:46749]'
|
bug7574 = '[ruby-dev:46749]'
|
||||||
e = assert_raise(NameError) { Object.const_get("String\0") }
|
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
|
end
|
||||||
|
|
||||||
def test_const_defined_invalid_name
|
def test_const_defined_invalid_name
|
||||||
@ -619,7 +619,7 @@ class TestModule < Test::Unit::TestCase
|
|||||||
assert_raise(TypeError, bug5084) { c1.const_defined?(1) }
|
assert_raise(TypeError, bug5084) { c1.const_defined?(1) }
|
||||||
bug7574 = '[ruby-dev:46749]'
|
bug7574 = '[ruby-dev:46749]'
|
||||||
e = assert_raise(NameError) { Object.const_defined?("String\0") }
|
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
|
end
|
||||||
|
|
||||||
def test_const_get_no_inherited
|
def test_const_get_no_inherited
|
||||||
|
Loading…
x
Reference in New Issue
Block a user