1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_object.rb: add assertions

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-09-11 06:13:57 +00:00
parent 8e3c057de8
commit dd9a92417d

View file

@ -63,6 +63,9 @@ class TestObject < Test::Unit::TestCase
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