[macruby-changes] [1431] MacRuby/branches/experimental/test_vm/assign.rb
source_changes at macosforge.org
source_changes at macosforge.org
Sat Apr 18 20:39:26 PDT 2009
Revision: 1431
http://trac.macosforge.org/projects/ruby/changeset/1431
Author: vincent.isambart at gmail.com
Date: 2009-04-18 20:39:26 -0700 (Sat, 18 Apr 2009)
Log Message:
-----------
added a test for the not-working-yet case for multiple assignments.
in fact, it's already tested in the function calls, but it's better to
have it also in the assignment tests.
Modified Paths:
--------------
MacRuby/branches/experimental/test_vm/assign.rb
Modified: MacRuby/branches/experimental/test_vm/assign.rb
===================================================================
--- MacRuby/branches/experimental/test_vm/assign.rb 2009-04-19 03:29:46 UTC (rev 1430)
+++ MacRuby/branches/experimental/test_vm/assign.rb 2009-04-19 03:39:26 UTC (rev 1431)
@@ -87,3 +87,9 @@
assert '42', "a=[4]; a += [2]; puts a.join"
assert '42', "a=[4,3,2]; a -= [3]; puts a.join"
+
+assert '[1, 2, 4]', %{
+ class A; def to_ary; [1, 2, 3, 4]; end; end
+ a, b, *, c = A.new
+ p [a, b, c]
+}
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090418/e159ccc5/attachment.html>
More information about the macruby-changes
mailing list