diff options
author | Jemma Issroff <[email protected]> | 2022-12-15 16:38:53 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2022-12-16 13:27:45 -0500 |
commit | 297df9240772a14141988aef63400e3988584ced (patch) | |
tree | c09467d56307503d46eba936dfbf774f133dbed0 /test/ruby/test_shapes.rb | |
parent | 2ccf6e539458ef5c9f7a2d68163089d1d38e47f7 (diff) |
Clean up Ruby Shape API
Make printing shapes better, use a struct instead of specific methods
for each field on a shape.
Co-Authored-By: Aaron Patterson <[email protected]>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6942
Diffstat (limited to 'test/ruby/test_shapes.rb')
-rw-r--r-- | test/ruby/test_shapes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_shapes.rb b/test/ruby/test_shapes.rb index 358657d360..40a43b9702 100644 --- a/test/ruby/test_shapes.rb +++ b/test/ruby/test_shapes.rb @@ -391,7 +391,7 @@ class TestShapes < Test::Unit::TestCase def test_out_of_bounds_shape assert_raise ArgumentError do - RubyVM::Shape.find_by_id(RubyVM::Shape.next_shape_id) + RubyVM::Shape.find_by_id(RubyVM.stat[:next_shape_id]) end assert_raise ArgumentError do RubyVM::Shape.find_by_id(-1) |