[macruby-changes] [2207] MacRuby/branches/experimental/spec/macruby

source_changes at macosforge.org source_changes at macosforge.org
Tue Aug 4 01:01:44 PDT 2009


Revision: 2207
          http://trac.macosforge.org/projects/ruby/changeset/2207
Author:   eloy.de.enige at gmail.com
Date:     2009-08-04 01:01:44 -0700 (Tue, 04 Aug 2009)
Log Message:
-----------
Gets the NSNumber boolean conversion spec working. Patch by Dan Sinclair.

Modified Paths:
--------------
    MacRuby/branches/experimental/spec/macruby/core/number_spec.rb

Removed Paths:
-------------
    MacRuby/branches/experimental/spec/macruby/tags/macruby/core/number_tags.txt

Modified: MacRuby/branches/experimental/spec/macruby/core/number_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/macruby/core/number_spec.rb	2009-08-04 07:23:22 UTC (rev 2206)
+++ MacRuby/branches/experimental/spec/macruby/core/number_spec.rb	2009-08-04 08:01:44 UTC (rev 2207)
@@ -3,9 +3,9 @@
 describe "An NSNumber boolean object" do
   it "can be compared against a true/false Ruby type" do
     true.should == NSNumber.numberWithBool(true)
-    true.should != NSNumber.numberWithBool(false)
+    true.should_not == NSNumber.numberWithBool(false)
     false.should == NSNumber.numberWithBool(false)
-    false.should != NSNumber.numberWithBool(true)
+    false.should_not == NSNumber.numberWithBool(true)
   end
 end
 
@@ -19,4 +19,4 @@
 		# popcnt can, and should, vary depending on machine word size for negative numbers.
 		-1.popcnt.should <= 64
 	end
-end
\ No newline at end of file
+end

Deleted: MacRuby/branches/experimental/spec/macruby/tags/macruby/core/number_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/macruby/tags/macruby/core/number_tags.txt	2009-08-04 07:23:22 UTC (rev 2206)
+++ MacRuby/branches/experimental/spec/macruby/tags/macruby/core/number_tags.txt	2009-08-04 08:01:44 UTC (rev 2207)
@@ -1 +0,0 @@
-fails:An NSNumber boolean object can be compared against a true/false Ruby type
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090804/4147cb28/attachment-0001.html>


More information about the macruby-changes mailing list