diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-11 06:13:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-11 06:13:57 +0000 |
commit | dd9a92417d0e7d9fd3545feda6240140de50fac8 (patch) | |
tree | 93c0e09b84c7a5e8b2f1184bf0baf2ec54d657de /test/ruby | |
parent | 8e3c057de880effb179d5c0aeb59e1d4c489eb09 (diff) | |
download | ruby-dd9a92417d0e7d9fd3545feda6240140de50fac8.tar.gz |
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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_object.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb index 585795ba38..8efbf82646 100644 --- a/test/ruby/test_object.rb +++ b/test/ruby/test_object.rb @@ -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 |