[macruby-changes] [1953] MacRuby/branches/experimental/spec/frozen/core/bignum/ comparison_spec.rb

source_changes at macosforge.org source_changes at macosforge.org
Mon Jun 29 16:17:43 PDT 2009


Revision: 1953
          http://trac.macosforge.org/projects/ruby/changeset/1953
Author:   pthomson at apple.com
Date:     2009-06-29 16:17:43 -0700 (Mon, 29 Jun 2009)
Log Message:
-----------
Fixed an incorrect specification.

Modified Paths:
--------------
    MacRuby/branches/experimental/spec/frozen/core/bignum/comparison_spec.rb

Modified: MacRuby/branches/experimental/spec/frozen/core/bignum/comparison_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/bignum/comparison_spec.rb	2009-06-29 07:25:58 UTC (rev 1952)
+++ MacRuby/branches/experimental/spec/frozen/core/bignum/comparison_spec.rb	2009-06-29 23:17:43 UTC (rev 1953)
@@ -44,8 +44,8 @@
       (- at inf <=> -Float::MAX.to_i*2).should == -1
     end
 
-    it "returns -1 when self is negative and other is -Infinity" do
-      (- at inf <=> -Float::MAX.to_i*2).should == -1
+    it "returns 1 when self is negative and other is -Infinity" do
+      (-Float::MAX.to_i*2 <=> @inf).should == 1
     end
   end
 
@@ -64,8 +64,8 @@
       (- at inf <=> -Float::MAX.to_i*2).should == -1
     end
 
-    it "returns -1 when self is negative and other is -Infinity" do
-      (- at inf <=> -Float::MAX.to_i*2).should == -1
+    it "returns 1 when self is negative and other is -Infinity" do
+      (-Float::MAX.to_i*2 <=> @inf).should == 1
     end
   end
 end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090629/e5da5cf9/attachment.html>


More information about the macruby-changes mailing list