Revision
117
Author
lsansonetti@apple.com
Date
2008-03-22 21:02:19 -0700 (Sat, 22 Mar 2008)

Log Message

added a test for a bug that is currently not fixed

Modified Paths

Diff

Modified: MacRuby/trunk/test-macruby/test_objc.rb (116 => 117)


--- MacRuby/trunk/test-macruby/test_objc.rb	2008-03-21 18:56:14 UTC (rev 116)
+++ MacRuby/trunk/test-macruby/test_objc.rb	2008-03-23 04:02:19 UTC (rev 117)
@@ -109,4 +109,15 @@
     assert_equal(v, o.test_getObject(dict, forKey:s))
   end
 
+  class MethodReturningBoxed
+    def foo
+      NSPoint.new(1, 2)
+    end
+  end
+  def test_objc_call_pure_method_returning_boxed
+    o = MethodReturningBoxed.new
+    assert_equal(NSPoint.new(1, 2), o.send(:foo))
+    assert_equal(NSPoint.new(1, 2), o.performSelector(:foo))
+  end
+
 end