summaryrefslogtreecommitdiff
path: root/test/ruby/test_shapes.rb
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2023-10-31 17:04:40 -0400
committerPeter Zhu <[email protected]>2023-10-31 17:04:40 -0400
commitc3b7f275613507334fc4dcbfde0491ddaa786323 (patch)
treec73f4055cb445bf7bbba0875fada1ebefcea6799 /test/ruby/test_shapes.rb
parent60e207b47f377b04d11df9a9dbb0548a578c2776 (diff)
Fix remove_instance_variable for too complex generic ivar
Diffstat (limited to 'test/ruby/test_shapes.rb')
-rw-r--r--test/ruby/test_shapes.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_shapes.rb b/test/ruby/test_shapes.rb
index 56e6ac67eb..228e9a4913 100644
--- a/test/ruby/test_shapes.rb
+++ b/test/ruby/test_shapes.rb
@@ -287,6 +287,9 @@ class TestShapes < Test::Unit::TestCase
tc = TooComplex.new
tc.instance_variable_set(:@a, 1)
tc.instance_variable_set(:@b, 2)
+
+ tc.remove_instance_variable(:@a)
+ assert_nil(tc.instance_variable_get(:@a))
end;
end