[PRISM] Ensure no void warnings in rubyoptions test

This commit is contained in:
Kevin Newton 2024-04-12 10:29:39 -04:00
parent 8e514bedf9
commit 5f2bcbb6d4
No known key found for this signature in database
GPG Key ID: 0EAD74C79EC73F26

View File

@ -306,7 +306,7 @@ class TestRubyOptions < Test::Unit::TestCase
assert_in_out_err(%w(--parser=prism -e) + ["puts :hi"], "", %w(hi), warning)
assert_in_out_err(%w(--parser=prism -W:no-experimental -e) + ["puts :hi"], "", %w(hi), [])
assert_in_out_err(%w(--parser=prism -W:no-experimental --dump=parsetree -e :hi), "", /"hi"/, [])
assert_in_out_err(%w(--parser=prism -W:no-experimental --dump=parsetree -e _=:hi), "", /"hi"/, [])
assert_in_out_err(%w(--parser=parse.y -e) + ["puts :hi"], "", %w(hi), [])
assert_norun_with_rflag('--parser=parse.y', '--version', "")