[macruby-changes] [2509] MacRuby/trunk/spec/frozen/language

source_changes at macosforge.org source_changes at macosforge.org
Sun Sep 6 22:13:03 PDT 2009


Revision: 2509
          http://trac.macosforge.org/projects/ruby/changeset/2509
Author:   lsansonetti at apple.com
Date:     2009-09-06 22:13:02 -0700 (Sun, 06 Sep 2009)
Log Message:
-----------
fixed a not spec and added 2 new ones

Modified Paths:
--------------
    MacRuby/trunk/spec/frozen/language/not_spec.rb
    MacRuby/trunk/spec/frozen/language/versions/not_1.9.rb

Modified: MacRuby/trunk/spec/frozen/language/not_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/language/not_spec.rb	2009-09-07 05:12:36 UTC (rev 2508)
+++ MacRuby/trunk/spec/frozen/language/not_spec.rb	2009-09-07 05:13:02 UTC (rev 2509)
@@ -26,8 +26,12 @@
   end
 
   it "returns true if the argument is nil" do
-    (not(false)).should be_true
+    (not(nil)).should be_true
   end
+
+  it "returns true if no argument is provided" do
+    (not()).should be_true
+  end
 end
 
 language_version __FILE__, "not"

Modified: MacRuby/trunk/spec/frozen/language/versions/not_1.9.rb
===================================================================
--- MacRuby/trunk/spec/frozen/language/versions/not_1.9.rb	2009-09-07 05:12:36 UTC (rev 2508)
+++ MacRuby/trunk/spec/frozen/language/versions/not_1.9.rb	2009-09-07 05:13:02 UTC (rev 2509)
@@ -19,4 +19,8 @@
   it "returns true if the argument is nil" do
     not(false).inspect.should == "true"
   end
+
+  it "returns true if no argument is provided" do
+    not().inspect.should == "true"
+  end
 end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090906/c2abecb0/attachment.html>


More information about the macruby-changes mailing list