From 36e09fc28b76fc7b4e2f735a32b6d03c91c7df5b Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 13 Dec 2013 14:20:53 +0000 Subject: 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 --- test/ruby/test_pack.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.2.3