[macruby-changes] [3040] MacRuby/trunk/test_vm/method.rb
source_changes at macosforge.org
source_changes at macosforge.org
Mon Nov 23 01:22:27 PST 2009
Revision: 3040
http://trac.macosforge.org/projects/ruby/changeset/3040
Author: lsansonetti at apple.com
Date: 2009-11-23 01:22:22 -0800 (Mon, 23 Nov 2009)
Log Message:
-----------
added a failing test (thanks Eloy)
Modified Paths:
--------------
MacRuby/trunk/test_vm/method.rb
Modified: MacRuby/trunk/test_vm/method.rb
===================================================================
--- MacRuby/trunk/test_vm/method.rb 2009-11-23 00:48:31 UTC (rev 3039)
+++ MacRuby/trunk/test_vm/method.rb 2009-11-23 09:22:22 UTC (rev 3040)
@@ -78,6 +78,13 @@
p :ok
}
+assert 'true', %{
+ class X
+ def foo; end
+ p method_defined?(:foo)
+ end
+}
+
assert '0', %{
class X; def self.foo(x); x * 2; end; end
X.method(:foo).call(21)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091123/dfa46d52/attachment.html>
More information about the macruby-changes
mailing list