summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2026-01-03 15:03:57 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2026-01-03 15:03:57 +0900
commitd7a6ff8224519005d2deeb3f4e98689a8a0835ad (patch)
tree09b6c0c8bdf0072c4eb704bb1321b4f38450f9d9 /test
parenta8a989b6f651b878c690f5fd0a728e19a54dd2b9 (diff)
[Bug #21819] Data objects without members should also be frozen
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_data.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_data.rb b/test/ruby/test_data.rb
index dd698fdcc4..5ac4c6b84b 100644
--- a/test/ruby/test_data.rb
+++ b/test/ruby/test_data.rb
@@ -262,6 +262,7 @@ class TestData < Test::Unit::TestCase
assert_equal('#<data >', test.inspect)
assert_equal([], test.members)
assert_equal({}, test.to_h)
+ assert_predicate(test, :frozen?)
end
def test_dup