[macruby-changes] [117] MacRuby/trunk/test-macruby/test_objc.rb
source_changes at macosforge.org
source_changes at macosforge.org
Sat Mar 22 21:02:19 PDT 2008
Revision: 117
http://trac.macosforge.org/projects/ruby/changeset/117
Author: lsansonetti at 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:
--------------
MacRuby/trunk/test-macruby/test_objc.rb
Modified: MacRuby/trunk/test-macruby/test_objc.rb
===================================================================
--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080322/7aeddb81/attachment.html
More information about the macruby-changes
mailing list