[前][次][番号順一覧][スレッド一覧]

ruby-changes:55387

From: kazu <ko1@a...>
Date: Wed, 17 Apr 2019 17:39:58 +0900 (JST)
Subject: [ruby-changes:55387] kazu:r67595 (trunk): Suppress warnings in `make test-all`

kazu	2019-04-17 17:39:52 +0900 (Wed, 17 Apr 2019)

  New Revision: 67595

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67595

  Log:
    Suppress warnings in `make test-all`
    
    suppress "warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby!"

  Modified files:
    trunk/test/ruby/test_pattern_matching.rb
Index: test/ruby/test_pattern_matching.rb
===================================================================
--- test/ruby/test_pattern_matching.rb	(revision 67594)
+++ test/ruby/test_pattern_matching.rb	(revision 67595)
@@ -1,6 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_pattern_matching.rb#L1
 # 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 https://github.com/ruby/ruby/blob/trunk/test/ruby/test_pattern_matching.rb#L1089
     end
   end
 end
+begin # fix indent
+end;
+$VERBOSE = verbose

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]