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:
parent
06099e4ee1
commit
40a499db65
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue