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:
parent
311b715483
commit
41f4317f45
31 changed files with 103 additions and 90 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue