diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-01 09:17:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-01 09:17:10 +0000 |
commit | 9df88e9cae57aa421230f14500e88f33f127414f (patch) | |
tree | 9de69221b07590991ab2ab5471d94a330c58f08d | |
parent | 44a2576f798b07139adde2d279e48fdbe71a0148 (diff) | |
download | ruby-9df88e9cae57aa421230f14500e88f33f127414f.tar.gz |
test for [Feature #11547]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_const.rb | 4 |
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 |