aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-09-02 21:50:17 +0900
committerKazuki Tsujimoto <kazuki@callcc.net>2023-09-05 11:52:34 +0900
commit4a90c934278a0b1de11389dbbc208ee044117119 (patch)
tree84dcbe1545e226c7f99924f322ed0cd8a8b36c36
parentc9af91148997d8a7d1dbcf5503fd5c46cbba0670 (diff)
downloadruby-4a90c934278a0b1de11389dbbc208ee044117119.tar.gz
Pattern matching has not been experimental
-rw-r--r--test/ruby/test_pattern_matching.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb
index 5e27593f25..b761909913 100644
--- a/test/ruby/test_pattern_matching.rb
+++ b/test/ruby/test_pattern_matching.rb
@@ -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