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:
parent
a267f45502
commit
3d026adb61
1 changed files with 12 additions and 0 deletions
|
@ -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
|
# Method redefinition (code invalidation) test
|
||||||
assert_equal '1', %q{
|
assert_equal '1', %q{
|
||||||
def ret1
|
def ret1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue