diff options
author | Yusuke Endoh <[email protected]> | 2020-09-29 11:58:04 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2020-09-29 11:58:04 +0900 |
commit | 40a499db65c3ef07cab2c1d7113328ef9dd40b09 (patch) | |
tree | 370eab3daca819075e5ab1a1945c56515bbd35f7 /test/racc | |
parent | 06099e4ee1c7ebe0a67929e42b6498612e4a25c8 (diff) |
test/racc/test_racc_command.rb: prevent a warning
http://rubyci.s3.amazonaws.com/ubuntu2004/ruby-master/log/20200929T003003Z.log.html.gz
```
warning: ambiguous first argument; put parentheses or a space even after `/' operator
```
Diffstat (limited to 'test/racc')
-rw-r--r-- | test/racc/test_racc_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/racc/test_racc_command.rb b/test/racc/test_racc_command.rb index f1116a371f..fb00ce7260 100644 --- a/test/racc/test_racc_command.rb +++ b/test/racc/test_racc_command.rb @@ -322,7 +322,7 @@ module Racc def test_ifelse stderr = nil racc "-o#{@TAB_DIR}/ifelse", "#{ASSET_DIR}/ifelse.y", stdout_filter: ->(s) { stderr = s } - stderr = stderr.lines[1..-1].join if RUBY_PLATFORM.match? /java/ + stderr = stderr.lines[1..-1].join if RUBY_PLATFORM.match?(/java/) assert_equal(<<~STDERR, stderr) 1 useless nonterminals: dummy |