mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/syck/test_string.rb (Syck::TestString#test_non_binary_string):
use assert_not instead of refute, unless required minitest directly. * test/test_prime.rb (TestPrime::sieve.Integer): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c84e529219
commit
b16fc57852
3 changed files with 9 additions and 3 deletions
|
@ -1,4 +1,10 @@
|
|||
Sun Feb 13 09:56:32 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Sun Feb 13 09:56:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/syck/test_string.rb (Syck::TestString#test_non_binary_string):
|
||||
use assert_not instead of refute, unless required minitest
|
||||
directly.
|
||||
|
||||
* test/test_prime.rb (TestPrime::sieve.Integer): ditto.
|
||||
|
||||
* test/xmlrpc/webrick_testing.rb (WEBrick_Testing#start_server):
|
||||
catch IOError when server socket was closed.
|
||||
|
|
|
@ -20,7 +20,7 @@ module Syck
|
|||
def test_non_binary_string
|
||||
string = binary_string(0.29)
|
||||
yml = YAML.dump string
|
||||
refute_match(/binary/, yml)
|
||||
assert_not_match(/binary/, yml)
|
||||
assert_equal string, YAML.load(yml)
|
||||
end
|
||||
|
||||
|
|
|
@ -169,6 +169,6 @@ class TestPrime < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
refute_includes Prime.each(7*37).to_a, 7*37, "[ruby-dev:39465]"
|
||||
assert_not_include Prime.each(7*37).to_a, 7*37, "[ruby-dev:39465]"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue