From d4ef0b4794b9abf66526979d1ab0cc7662e0749d Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 1 Oct 2013 07:27:11 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_regexp.rb | 4 ++-- test/ruby/test_string.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index 40c084ffbe..16f13ea19d 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -1012,7 +1012,7 @@ class TestRegexp < Test::Unit::TestCase 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 end end - puts // =~ "" + assert_equal("foo", // =~ "") RUBY end diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index 8d96c8cbae..766b3cfc97 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -2258,7 +2258,7 @@ class TestString < Test::Unit::TestCase 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 end end - puts "" =~ // + assert_equal("foo", "" =~ //) RUBY end end