summaryrefslogtreecommitdiff
path: root/test/ruby/test_pack.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-13 14:20:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-13 14:20:53 +0000
commit36e09fc28b76fc7b4e2f735a32b6d03c91c7df5b (patch)
treef66085d85d299d5e0ebafa1ac91ad798b95c79ff /test/ruby/test_pack.rb
parent5bff643540d8a32bed918c29a86d400cd47ec11d (diff)
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
Diffstat (limited to 'test/ruby/test_pack.rb')
-rw-r--r--test/ruby/test_pack.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb
index 7848eb5e62..621a06beba 100644
--- a/test/ruby/test_pack.rb
+++ b/test/ruby/test_pack.rb
@@ -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