diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-01 07:27:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-01 07:27:11 +0000 |
commit | d4ef0b4794b9abf66526979d1ab0cc7662e0749d (patch) | |
tree | b67e608f8fcbe4eae7d1710a725357a54afff1d1 /test/ruby | |
parent | fa4c213397fe85f2839f1b5dd622767952b401d0 (diff) | |
download | ruby-d4ef0b4794b9abf66526979d1ab0cc7662e0749d.tar.gz |
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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_regexp.rb | 4 | ||||
-rw-r--r-- | 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 |