Revision
1953
Author
pthomson@apple.com
Date
2009-06-29 16:17:43 -0700 (Mon, 29 Jun 2009)

Log Message

Fixed an incorrect specification.

Modified Paths

Diff

Modified: MacRuby/branches/experimental/spec/frozen/core/bignum/comparison_spec.rb (1952 => 1953)


--- 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 @@
       (-@inf <=> -Float::MAX.to_i*2).should == -1
     end
 
-    it "returns -1 when self is negative and other is -Infinity" do
-      (-@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 @@
       (-@inf <=> -Float::MAX.to_i*2).should == -1
     end
 
-    it "returns -1 when self is negative and other is -Infinity" do
-      (-@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