[macruby-changes] [3478] MacRuby/trunk

source_changes at macosforge.org source_changes at macosforge.org
Wed Feb 10 15:35:41 PST 2010


Revision: 3478
          http://trac.macosforge.org/projects/ruby/changeset/3478
Author:   pthomson at apple.com
Date:     2010-02-10 15:35:41 -0800 (Wed, 10 Feb 2010)
Log Message:
-----------
Removed a working test from the VM's known_bugs.rb file and wrote a spec to make sure it works in the future.

Modified Paths:
--------------
    MacRuby/trunk/spec/frozen/core/object/shared/dup_clone.rb
    MacRuby/trunk/test_vm/known_bugs.rb

Modified: MacRuby/trunk/spec/frozen/core/object/shared/dup_clone.rb
===================================================================
--- MacRuby/trunk/spec/frozen/core/object/shared/dup_clone.rb	2010-02-10 22:52:41 UTC (rev 3477)
+++ MacRuby/trunk/spec/frozen/core/object/shared/dup_clone.rb	2010-02-10 23:35:41 UTC (rev 3478)
@@ -22,6 +22,7 @@
 end
 
 describe :object_dup_clone, :shared => true do
+  
   it "returns a new object duplicated from the original" do
     o = ObjectSpecDup.new
     o2 = ObjectSpecDup.new
@@ -33,6 +34,11 @@
     o3.obj.should == 10
     o2.obj.should == :original
   end
+  
+  it "produces distinct objects" do
+    o = ObjectSpecDup.new
+    o.should_not.eql? o.send(@method)
+  end
 
   it "produces a shallow copy, contained objects are not recursively dupped" do
     o = ObjectSpecDup.new

Modified: MacRuby/trunk/test_vm/known_bugs.rb
===================================================================
--- MacRuby/trunk/test_vm/known_bugs.rb	2010-02-10 22:52:41 UTC (rev 3477)
+++ MacRuby/trunk/test_vm/known_bugs.rb	2010-02-10 23:35:41 UTC (rev 3478)
@@ -6,11 +6,6 @@
   p X.object_id != X.dup.object_id
 }
 
-assert 'true', %{
-  o = Object.new
-  p o.object_id != o.dup.object_id
-}
-
 assert '123456789012345678901234567890', %{
   puts '%d' % 123456789012345678901234567890
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100210/3b362029/attachment.html>


More information about the macruby-changes mailing list