зеркало из https://github.com/github/ruby.git
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:
Родитель
06099e4ee1
Коммит
40a499db65
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче