aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_pattern_matching.rb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-17 08:39:52 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-17 08:39:52 +0000
commita2366a15bad75fb2ddec63d36aff4af4be14ff14 (patch)
tree50ca1c99d402cbcacdc8f434ddb3ec232a5a9037 /test/ruby/test_pattern_matching.rb
parentffbcf9f842d228e4a95b13f415dfc4e141e8f4f0 (diff)
downloadruby-a2366a15bad75fb2ddec63d36aff4af4be14ff14.tar.gz
Suppress warnings in `make test-all`
suppress "warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby!" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_pattern_matching.rb')
-rw-r--r--test/ruby/test_pattern_matching.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb
index 9153297d39..0af5e3ad97 100644
--- a/test/ruby/test_pattern_matching.rb
+++ b/test/ruby/test_pattern_matching.rb
@@ -1,6 +1,10 @@
# frozen_string_literal: true
require 'test/unit'
+verbose, $VERBOSE = $VERBOSE, nil # suppress "warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby!"
+eval "#{<<~"begin;"}\n#{<<~'end;'}".gsub(/^.*# fix indent\n/, ''), binding, __FILE__, __LINE__+2
+begin;
+end # fix indent
class TestPatternMatching < Test::Unit::TestCase
class C
class << self
@@ -1085,3 +1089,6 @@ END
end
end
end
+begin # fix indent
+end;
+$VERBOSE = verbose