1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
```
This commit is contained in:
Yusuke Endoh 2020-09-29 11:58:04 +09:00
parent 06099e4ee1
commit 40a499db65

View file

@ -322,7 +322,7 @@ module Racc
def test_ifelse def test_ifelse
stderr = nil stderr = nil
racc "-o#{@TAB_DIR}/ifelse", "#{ASSET_DIR}/ifelse.y", stdout_filter: ->(s) { stderr = s } 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) assert_equal(<<~STDERR, stderr)
1 useless nonterminals: 1 useless nonterminals:
dummy dummy