diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_flip.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ruby/test_flip.rb b/test/ruby/test_flip.rb new file mode 100644 index 0000000000..8d7cdd03ad --- /dev/null +++ b/test/ruby/test_flip.rb @@ -0,0 +1,13 @@ +require 'test/unit' +require_relative 'envutil' + +class TestFlip < Test::Unit::TestCase + def test_hidden_key + bug6899 = '[ruby-core:47253]' + foo = "foor" + bar = "bar" + assert_nothing_raised(NotImplementedError, bug6899) do + 2000.times {eval %[(foo..bar) ? 1 : 2]} + end + end +end |