diff options
-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 |