summaryrefslogtreecommitdiff
path: root/test/racc/test_racc_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/racc/test_racc_command.rb')
-rw-r--r--test/racc/test_racc_command.rb2
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