ruby-changes:32098
From: nobu <ko1@a...>
Date: Fri, 13 Dec 2013 23:21:04 +0900 (JST)
Subject: [ruby-changes:32098] nobu:r44177 (trunk): test/ruby: better assertions
nobu 2013-12-13 23:20:53 +0900 (Fri, 13 Dec 2013) New Revision: 44177 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44177 Log: test/ruby: better assertions * test/ruby: use better assertions instead of mere assert. Modified files: trunk/test/ruby/test_pack.rb Index: test/ruby/test_pack.rb =================================================================== --- test/ruby/test_pack.rb (revision 44176) +++ test/ruby/test_pack.rb (revision 44177) @@ -445,7 +445,7 @@ class TestPack < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_pack.rb#L445 %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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/