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

Remove warnings of flip-flop deprecation from tests and specs

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2018-06-15 08:53:16 +00:00
parent bae638ad5b
commit bf7a32d220
5 changed files with 34 additions and 12 deletions

View file

@ -301,8 +301,14 @@ describe "Operators" do
from = 1
to = 2
# These are Range instances, not flip-flop
(from..to ? 3 : 4).should == 3
(from...to ? 3 : 4).should == 3
@verbose = $VERBOSE
$VERBOSE = nil
begin
(eval("from..to") ? 3 : 4).should == 3
(eval("from...to") ? 3 : 4).should == 3
ensure
$VERBOSE = @verbose
end
end
it "? : is right-associative" do