[前][次][番号順一覧][スレッド一覧]

ruby-changes:45172

From: nobu <ko1@a...>
Date: Sun, 1 Jan 2017 18:17:15 +0900 (JST)
Subject: [ruby-changes:45172] nobu:r57245 (trunk): test for [Feature #11547]

nobu	2017-01-01 18:17:10 +0900 (Sun, 01 Jan 2017)

  New Revision: 57245

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57245

  Log:
    test for [Feature #11547]

  Modified files:
    trunk/test/ruby/test_const.rb
Index: test/ruby/test_const.rb
===================================================================
--- test/ruby/test_const.rb	(revision 57244)
+++ test/ruby/test_const.rb	(revision 57245)
@@ -65,4 +65,8 @@ WARNING https://github.com/ruby/ruby/blob/trunk/test/ruby/test_const.rb#L65
 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]