[前][次][番号順一覧][スレッド一覧]

ruby-changes:14888

From: akr <ko1@a...>
Date: Thu, 25 Feb 2010 01:52:20 +0900 (JST)
Subject: [ruby-changes:14888] Ruby:r26757 (trunk): fix assertion message.

akr	2010-02-25 01:52:09 +0900 (Thu, 25 Feb 2010)

  New Revision: 26757

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26757

  Log:
    fix assertion message.

  Modified files:
    trunk/test/ruby/test_integer_comb.rb

Index: test/ruby/test_integer_comb.rb
===================================================================
--- test/ruby/test_integer_comb.rb	(revision 26756)
+++ test/ruby/test_integer_comb.rb	(revision 26757)
@@ -584,10 +584,10 @@
       VS.reverse_each {|a|
         s = [a].pack(template)
         b = s.unpack(template)[0]
-        assert_equal(a & mask, b & mask, "[#{a}].pack(#{template.dump}).unpack(#{template.dump}) & #{mask}")
         if min <= a && a <= max
-          assert_equal(a, b, "[#{a}].pack(#{template.dump}).unpack(#{template.dump})")
+          assert_equal(a, b, "[#{a}].pack(#{template.dump}).unpack(#{template.dump})[0]")
         end
+        assert_equal(a & mask, b & mask, "[#{a}].pack(#{template.dump}).unpack(#{template.dump})[0] & #{mask}")
       }
     }
   end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]