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

ruby-changes:36392

From: nobu <ko1@a...>
Date: Tue, 18 Nov 2014 03:41:16 +0900 (JST)
Subject: [ruby-changes:36392] nobu:r48473 (trunk): test_inadvertent_creation.rb: split test

nobu	2014-11-18 03:40:50 +0900 (Tue, 18 Nov 2014)

  New Revision: 48473

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

  Log:
    test_inadvertent_creation.rb: split test
    
    * test/-ext-/symbol/test_inadvertent_creation.rb: split
      test_module_const_defined? from test_module_const_get, and
      assertion for the latter.

  Modified files:
    trunk/test/-ext-/symbol/test_inadvertent_creation.rb
Index: test/-ext-/symbol/test_inadvertent_creation.rb
===================================================================
--- test/-ext-/symbol/test_inadvertent_creation.rb	(revision 48472)
+++ test/-ext-/symbol/test_inadvertent_creation.rb	(revision 48473)
@@ -36,6 +36,13 @@ module Test_Symbol https://github.com/ruby/ruby/blob/trunk/test/-ext-/symbol/test_inadvertent_creation.rb#L36
       cl = Class.new
       name = noninterned_name("A")
 
+      assert_not_interned_error(cl, :const_get, name, Feature5072)
+    end
+
+    def test_module_const_defined?
+      cl = Class.new
+      name = noninterned_name("A")
+
       assert_not_interned_false(cl, :const_defined?, name, Feature5072)
     end
 

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

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