* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):

use more descriptive assertions.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-04-29 05:46:04 +00:00
parent e1cc514073
commit 921b2d1cfb
10 changed files with 25 additions and 21 deletions

View file

@ -567,7 +567,7 @@ class TestPack < Test::Unit::TestCase
end
def test_pack_p2
assert([nil].pack("p") =~ /\A\0*\Z/)
assert_match(/\A\0*\Z/, [nil].pack("p"))
end
def test_pack_unpack_w