diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_float.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb index 2684cd8eab..b31c0415f2 100644 --- a/test/ruby/test_float.rb +++ b/test/ruby/test_float.rb @@ -793,4 +793,21 @@ class TestFloat < Test::Unit::TestCase h = {0.0 => bug10979} assert_equal(bug10979, h[-0.0]) end + + def test_aliased_quo_recursion + assert_separately([], "#{<<-"begin;"}\n#{<<-"end;"}") + begin; + class Float + $VERBOSE = nil + alias / quo + end + assert_raise(NameError) do + begin + 1.0/2.0 + rescue SystemStackError => e + raise SystemStackError, e.message + end + end + end; + end end |