summaryrefslogtreecommitdiff
path: root/test/ruby/test_shapes.rb
diff options
context:
space:
mode:
authorAaron Patterson <[email protected]>2023-03-10 08:50:43 -0800
committerAaron Patterson <[email protected]>2023-03-10 08:50:43 -0800
commit365fed6369cf490f44878322fcaeddf9dfcb02f5 (patch)
treea0c756ecd41538f82cfaa9acb0388e34e13f7ae0 /test/ruby/test_shapes.rb
parentf98a7fd28d6eedfb80e5d7d1a92d67aa3dc4783f (diff)
Revert "Allow classes and modules to become too complex"
This reverts commit 69465df4242f3b2d8e55fbe18d7c45b47b40a626.
Diffstat (limited to 'test/ruby/test_shapes.rb')
-rw-r--r--test/ruby/test_shapes.rb22
1 files changed, 1 insertions, 21 deletions
diff --git a/test/ruby/test_shapes.rb b/test/ruby/test_shapes.rb
index e34256415b..b1a2ba2f1b 100644
--- a/test/ruby/test_shapes.rb
+++ b/test/ruby/test_shapes.rb
@@ -105,27 +105,7 @@ class TestShapes < Test::Unit::TestCase
obj.instance_variable_set(:"@a#{_1}", 1)
end
- assert_predicate RubyVM::Shape.of(obj), :too_complex?
- end
-
- def test_too_many_ivs_on_module
- obj = Module.new
-
- (RubyVM::Shape::SHAPE_MAX_NUM_IVS + 1).times do
- obj.instance_variable_set(:"@a#{_1}", 1)
- end
-
- assert_predicate RubyVM::Shape.of(obj), :too_complex?
- end
-
- def test_too_many_ivs_on_builtin
- obj = "string"
-
- (RubyVM::Shape::SHAPE_MAX_NUM_IVS + 1).times do
- obj.instance_variable_set(:"@a#{_1}", 1)
- end
-
- refute RubyVM::Shape.of(obj).too_complex?
+ assert_false RubyVM::Shape.of(obj).too_complex?
end
def test_removing_when_too_many_ivs_on_class