diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-19 07:48:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-19 07:48:02 +0000 |
commit | 41f4317f45021460871bd11c666f438f5517904b (patch) | |
tree | c7ac02b58faafe7f92946fe8f14c18480280624f /test/ruby/test_parse.rb | |
parent | 311b7154839b91c87ee40908ac6d3f5c330d7b11 (diff) | |
download | ruby-41f4317f45021460871bd11c666f438f5517904b.tar.gz |
test/ruby: suppress parser warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_parse.rb')
-rw-r--r-- | test/ruby/test_parse.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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 |