aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_flip.rb
blob: 8d7cdd03ad5192282aeb2a1efe015f4ebd3493ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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