1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/ruby: better assertions

* test/ruby: use better assertions instead of mere assert.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-12-13 14:20:53 +00:00
parent 5bff643540
commit 36e09fc28b

View file

@ -445,7 +445,7 @@ class TestPack < Test::Unit::TestCase
%w(f d e E g G).each do |f|
v = [x].pack(f).unpack(f)
if x.nan?
assert(v.first.nan?)
assert_predicate(v.first, :nan?)
else
assert_equal([x], v)
end