Skip to content

Commit

Permalink
insert fail
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1 committed Jul 27, 2024
1 parent e798f45 commit 5a8e1eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/ruby/test_array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3615,3 +3615,9 @@ def test_array_subclass
assert_equal(Array, @cls[*(1..100)][1..99].class) #not embedded
end
end

class Array
def compact
self
end
end

0 comments on commit 5a8e1eb

Please sign in to comment.