[macruby-changes] [4299] MacRuby/trunk/test_vm/class.rb
source_changes at macosforge.org
source_changes at macosforge.org
Sun Jun 27 16:19:15 PDT 2010
Revision: 4299
http://trac.macosforge.org/projects/ruby/changeset/4299
Author: eloy.de.enige at gmail.com
Date: 2010-06-27 16:19:10 -0700 (Sun, 27 Jun 2010)
Log Message:
-----------
Add test_vm test for a regression bug with caller.
Modified Paths:
--------------
MacRuby/trunk/test_vm/class.rb
Modified: MacRuby/trunk/test_vm/class.rb
===================================================================
--- MacRuby/trunk/test_vm/class.rb 2010-06-27 18:31:05 UTC (rev 4298)
+++ MacRuby/trunk/test_vm/class.rb 2010-06-27 23:19:10 UTC (rev 4299)
@@ -167,3 +167,13 @@
B = C.dup
puts B.to_s + ", " + B.constants.to_s + ", " + B.instance_methods(false).to_s
}
+
+# should obviously be a real file path when run from a file...
+assert %{["-:7:in `<main>'"]}, %{
+ class X
+ def self.inherited(klass)
+ p caller
+ end
+ end
+ class Y < X; end
+}
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100627/ac806018/attachment.html>
More information about the macruby-changes
mailing list