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

ruby-changes:35443

From: nobu <ko1@a...>
Date: Thu, 11 Sep 2014 15:14:14 +0900 (JST)
Subject: [ruby-changes:35443] nobu:r47525 (trunk): test_object.rb: add assertions

nobu	2014-09-11 15:13:57 +0900 (Thu, 11 Sep 2014)

  New Revision: 47525

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

  Log:
    test_object.rb: add assertions
    
    * test/ruby/test_object.rb (test_freeze_immediate): assertions for
      [Feature #8923].

  Modified files:
    trunk/test/ruby/test_object.rb
Index: test/ruby/test_object.rb
===================================================================
--- test/ruby/test_object.rb	(revision 47524)
+++ test/ruby/test_object.rb	(revision 47525)
@@ -63,6 +63,9 @@ class TestObject < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_object.rb#L63
     1.freeze
     assert_equal(true, 1.frozen?)
     assert_equal(true, 2.frozen?)
+    assert_equal(true, true.frozen?)
+    assert_equal(true, false.frozen?)
+    assert_equal(true, nil.frozen?)
   end
 
   def test_nil_to_f

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

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