1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add failing test identified by Aaron Patterson

This commit is contained in:
Maxime Chevalier-Boisvert 2021-02-10 19:57:06 -05:00 committed by Alan Wu
parent a267f45502
commit 3d026adb61

View file

@ -1,3 +1,15 @@
# Putobject, less-than operator, fixnums
assert_equal '2', %q{
def check_index(index)
if 0x40000000 < index
raise "wat? #{index}"
end
index
end
check_index 2
check_index 2
}
# Method redefinition (code invalidation) test
assert_equal '1', %q{
def ret1