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:
parent
5bff643540
commit
36e09fc28b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue