summaryrefslogtreecommitdiff
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-02-20 23:03:13 +0900
committerNobuyoshi Nakada <[email protected]>2024-02-20 23:56:07 +0900
commit835fa98a62ca10f06861dc7bde9cd1a5bc0d1612 (patch)
treeb9900a55ff63b00a8c228007044da97353ffafee /test/ruby/test_rubyoptions.rb
parentbcfcdae58e439eb960ef02cc03f894f34712862d (diff)
Update warning flags before dump
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 6bf94fed32..856593f9f6 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -296,6 +296,8 @@ class TestRubyOptions < Test::Unit::TestCase
warning = /compiler based on the Prism parser is currently experimental/
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=parse.y -e) + ["puts :hi"], "", %w(hi), [])
assert_norun_with_rflag('--parser=parse.y', '--version', "")