diff options
author | Kazuki Tsujimoto <[email protected]> | 2020-11-01 13:28:24 +0900 |
---|---|---|
committer | Kazuki Tsujimoto <[email protected]> | 2020-11-01 13:33:58 +0900 |
commit | b60153241121297c94de976419d421683da4d51b (patch) | |
tree | b1c1c8f8ca5d89f72de73d1fece79c4d490fb8df /test/ruby/test_pattern_matching.rb | |
parent | 4f8d9b0db84c42c8d37f75de885de1c0a5cb542c (diff) |
Pattern matching is no longer experimental
Diffstat (limited to 'test/ruby/test_pattern_matching.rb')
-rw-r--r-- | test/ruby/test_pattern_matching.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb index d4de685495..b155cb8579 100644 --- a/test/ruby/test_pattern_matching.rb +++ b/test/ruby/test_pattern_matching.rb @@ -1473,13 +1473,13 @@ END assert_warn('') {eval(code)} Warning[:experimental] = true - assert_warn(/Pattern matching is experimental/) {eval(code)} + assert_warn(/is experimental/) {eval(code)} ensure Warning[:experimental] = w end def test_experimental_warning - assert_experimental_warning("case 0; in 0; end") + assert_experimental_warning("case [0]; in [*, 0, *]; end") assert_experimental_warning("0 => 0") end end |