[macruby-changes] [778] MacRuby/trunk/test-macruby/known_bugs.rb

source_changes at macosforge.org source_changes at macosforge.org
Tue Jan 6 07:54:54 PST 2009


Revision: 778
          http://trac.macosforge.org/projects/ruby/changeset/778
Author:   eloy.de.enige at gmail.com
Date:     2009-01-06 07:54:53 -0800 (Tue, 06 Jan 2009)
Log Message:
-----------
Added failing test case about calling super from respond_to? to known_bugs.rb

Modified Paths:
--------------
    MacRuby/trunk/test-macruby/known_bugs.rb

Modified: MacRuby/trunk/test-macruby/known_bugs.rb
===================================================================
--- MacRuby/trunk/test-macruby/known_bugs.rb	2009-01-06 14:59:53 UTC (rev 777)
+++ MacRuby/trunk/test-macruby/known_bugs.rb	2009-01-06 15:54:53 UTC (rev 778)
@@ -106,4 +106,18 @@
       assert_raise(NameError) { NamespacedClass }
     end
   end
+  
+  class TestRespondTo < Test::Unit::TestCase
+    class RespondTo
+      def respond_to?(method, hidden = false)
+        super
+      end
+    end
+    
+    def test_super_implementation
+      assert_nothing_raised(SystemStackError) do
+        RespondTo.new.respond_to?(:object_id)
+      end
+    end
+  end
 end
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090106/db3c4d78/attachment.html>


More information about the macruby-changes mailing list