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_rubyoptions.rb | |
parent | 311b7154839b91c87ee40908ac6d3f5c330d7b11 (diff) |
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_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index ba74be5eac..340e945de4 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -818,14 +818,14 @@ class TestRubyOptions < Test::Unit::TestCase ["--disable-frozen-string-literal", false], [nil, false], ] - debug = [ + debugs = [ ["--debug-frozen-string-literal", true], ["--debug=frozen-string-literal", true], ["--debug", true], [nil, false], ] opts = ["--disable=gems"] - frozen.product(debug) do |(opt1, freeze), (opt2, debug)| + frozen.product(debugs) do |(opt1, freeze), (opt2, debug)| opt = opts + [opt1, opt2].compact err = !freeze ? [] : debug ? with_debug_pat : wo_debug_pat assert_in_out_err(opt, '"foo" << "bar"', [], err) |