Pattern matching has not been experimental

This commit is contained in:
yui-knk 2023-09-02 21:50:17 +09:00 committed by Kazuki Tsujimoto
parent c9af911489
commit 4a90c93427
Notes: git 2023-09-05 02:53:02 +00:00

View File

@ -109,16 +109,12 @@ class TestPatternMatching < Test::Unit::TestCase
end
assert_block do
# suppress "warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby!"
experimental, Warning[:experimental] = Warning[:experimental], false
eval(%q{
case true
in a
a
end
})
ensure
Warning[:experimental] = experimental
end
assert_block do