From 41f4317f45021460871bd11c666f438f5517904b Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 19 Feb 2016 07:48:02 +0000 Subject: test/ruby: suppress parser warnings git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_parse.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/ruby/test_parse.rb') diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index 6560618b11..42df89189c 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -681,14 +681,14 @@ x = __ENCODING__ def test_invalid_char bug10117 = '[ruby-core:64243] [Bug #10117]' invalid_char = /Invalid char `\\x01'/ - x = 1 + x = x = 1 assert_in_out_err(%W"-e \x01x", "", [], invalid_char, bug10117) assert_syntax_error("\x01x", invalid_char, bug10117) assert_equal(nil, eval("\x04x")) end def test_literal_concat - x = "baz" + x = x = "baz" assert_equal("foobarbaz", eval('"foo" "bar#{x}"')) end @@ -759,7 +759,7 @@ x = __ENCODING__ $VERBOSE = true stderr = $stderr $stderr = StringIO.new("") - x = 1 + x = x = 1 assert_nil eval("x; nil") assert_nil eval("1+1; nil") assert_nil eval("TestParse; nil") @@ -825,7 +825,7 @@ x = __ENCODING__ end assert_nothing_raised do - x = "bar" + x = x = "bar" eval <<-END, nil, __FILE__, __LINE__+1 :"foo#{"x"}baz" ? 1 : 2 END -- cgit v1.2.3