From d9242d596658382cfc69c0a617ad167630d20687 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 23 Jul 2011 03:12:28 +0000 Subject: * parse.y (rb_check_id): conversion condition was inverse. [Bug #5084] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_module.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby/test_module.rb') diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 1aa7f8c691..b6e827a944 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -498,6 +498,8 @@ class TestModule < Test::Unit::TestCase name = "gadzooks" assert !Symbol.all_symbols.any? {|sym| sym.to_s == name} assert_raise(NameError) { c1.const_defined?(name) } + bug5084 = '[ruby-dev:44200]' + assert_raise(TypeError, bug5084) { c1.const_defined?(1) } end def test_const_get_no_inherited -- cgit v1.2.3