1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Revert "parse.y: Deprecate flip-flops"

This reverts commit bae638ad5b.

[Feature #5400]
This commit is contained in:
Nobuyoshi Nakada 2019-07-11 14:29:35 +09:00
parent d77b84ca82
commit 4e038a7e64
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
3 changed files with 2 additions and 18 deletions

View file

@ -308,18 +308,6 @@ describe "The if expression" do
6.times(&b)
ScratchPad.recorded.should == [4, 5, 4, 5]
end
ruby_version_is "2.6" do
it 'is deprecated' do
i = 4
-> do
eval "ScratchPad << 'it works' if (i == 4)..(i == 7)"
end.should complain(/flip-flop is deprecated/)
ScratchPad.recorded.should == ['it works']
end
end
end
end