diff options
Diffstat (limited to 'test/ruby/test_fixnum.rb')
-rw-r--r-- | test/ruby/test_fixnum.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_fixnum.rb b/test/ruby/test_fixnum.rb index a031923b02..4567da0a60 100644 --- a/test/ruby/test_fixnum.rb +++ b/test/ruby/test_fixnum.rb @@ -275,4 +275,8 @@ class TestFixnum < Test::Unit::TestCase def test_singleton_method assert_raise(TypeError) { a = 1; def a.foo; end } end + + def test_frozen + assert_equal(true, 1.frozen?) + end end |