aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_const.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-01 09:17:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-01 09:17:10 +0000
commit6bfb6a03708173b4b638b6c4b4947958bd20ad99 (patch)
tree9de69221b07590991ab2ab5471d94a330c58f08d /test/ruby/test_const.rb
parentc26d189adbeff5c7b075258dda6929c497a18617 (diff)
downloadruby-6bfb6a03708173b4b638b6c4b4947958bd20ad99.tar.gz
test for [Feature #11547]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_const.rb')
-rw-r--r--test/ruby/test_const.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_const.rb b/test/ruby/test_const.rb
index ef5c295b07..8784e0e988 100644
--- a/test/ruby/test_const.rb
+++ b/test/ruby/test_const.rb
@@ -65,4 +65,8 @@ WARNING
PRE
assert_no_memory_leak(%w[-W0 -], '', code, 'redefined constant', timeout: 30)
end
+
+ def test_toplevel_lookup
+ assert_raise(NameError, '[Feature #11547]') {TestConst::Object}
+ end
end