mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
c9b4b78085
* compile.c (iseq_compile_each): count flip-flop state in local iseq not in each iseqs, so that the keys can be other than hidden strings. [ruby-core:47253] [Bug #6899] * vm_insnhelper.c (lep_svar_get, lep_svar_set, vm_getspecial): store flip-flop states in an array instead of a hash. * iseq.c (set_relation): main iseq also can has local scope. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
13 lines
298 B
Ruby
13 lines
298 B
Ruby
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
|