ruby-changes:31025
From: nobu <ko1@a...>
Date: Tue, 1 Oct 2013 16:27:16 +0900 (JST)
Subject: [ruby-changes:31025] nobu:r43104 (trunk): test_regexp.rb, test_string.rb: use assert_separately
nobu 2013-10-01 16:27:11 +0900 (Tue, 01 Oct 2013) New Revision: 43104 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43104 Log: test_regexp.rb, test_string.rb: use assert_separately * test/ruby/test_regexp.rb (test_eq_tilde_can_be_overridden): use assert_separately to suppress a warning. * test/ruby/test_string.rb (test_eq_tilde_can_be_overridden): ditto. Modified files: trunk/test/ruby/test_regexp.rb trunk/test/ruby/test_string.rb Index: test/ruby/test_regexp.rb =================================================================== --- test/ruby/test_regexp.rb (revision 43103) +++ test/ruby/test_regexp.rb (revision 43104) @@ -1012,7 +1012,7 @@ class TestRegexp < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_regexp.rb#L1012 end def test_eq_tilde_can_be_overridden - assert_in_out_err([], <<-RUBY, ["foo"], []) + assert_separately([], <<-RUBY) class Regexp undef =~ def =~(str) @@ -1020,7 +1020,7 @@ class TestRegexp < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_regexp.rb#L1020 end end - puts // =~ "" + assert_equal("foo", // =~ "") RUBY end Index: test/ruby/test_string.rb =================================================================== --- test/ruby/test_string.rb (revision 43103) +++ test/ruby/test_string.rb (revision 43104) @@ -2258,7 +2258,7 @@ class TestString < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_string.rb#L2258 end def test_eq_tilde_can_be_overridden - assert_in_out_err([], <<-RUBY, ["foo"], []) + assert_separately([], <<-RUBY) class String undef =~ def =~(str) @@ -2266,7 +2266,7 @@ class TestString < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_string.rb#L2266 end end - puts "" =~ // + assert_equal("foo", "" =~ //) RUBY end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/