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:
parent
8e3c057de8
commit
dd9a92417d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue