successful recursion check to be shallower; ref #1630

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-01-01 12:20:48 +09:00
parent 9007aafef4
commit 047f318cf9
+1 -1
View File
@@ -496,7 +496,7 @@ assert('stack extend') do
recurse(count+1, stop)
end
assert_equal 61, recurse(0, 60)
assert_equal 6, recurse(0, 5)
assert_raise RuntimeError do
recurse(0, 100000)
end