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

test/ruby: suppress parser warnings

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-02-19 07:48:02 +00:00
parent 311b715483
commit 41f4317f45
31 changed files with 103 additions and 90 deletions

View file

@ -211,9 +211,9 @@ class TestBasicInstructions < Test::Unit::TestCase
assert_raise(NameError) { a }
assert_raise(NameError) { b }
assert_raise(NameError) { c }
a = "NOT OK"
b = "NOT OK"
c = "NOT OK"
a = a = "NOT OK"
b = b = "NOT OK"
c = c = "NOT OK"
end
class Const
@ -611,8 +611,8 @@ class TestBasicInstructions < Test::Unit::TestCase
x = OP.new
assert_equal 42, x.foo = 42, bug7773
assert_equal 42, x.foo, bug7773
assert_equal -6, x.send(:foo=, -6), bug7773
assert_equal -6, x.foo, bug7773
assert_equal (-6), x.send(:foo=, -6), bug7773
assert_equal (-6), x.foo, bug7773
assert_equal :Bug1996, x.send(:x=, :case_when_setter_returns_other_value), bug7773
assert_equal :case_when_setter_returns_other_value, x.x, bug7773
end