[macruby-changes] [2429] MacRuby/trunk/test_vm/case.rb

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 29 11:41:09 PDT 2009


Revision: 2429
          http://trac.macosforge.org/projects/ruby/changeset/2429
Author:   eloy.de.enige at gmail.com
Date:     2009-08-29 11:41:05 -0700 (Sat, 29 Aug 2009)
Log Message:
-----------
Added failing test case about using a splatted array of classes in a when clause.

Modified Paths:
--------------
    MacRuby/trunk/test_vm/case.rb

Modified: MacRuby/trunk/test_vm/case.rb
===================================================================
--- MacRuby/trunk/test_vm/case.rb	2009-08-29 16:00:05 UTC (rev 2428)
+++ MacRuby/trunk/test_vm/case.rb	2009-08-29 18:41:05 UTC (rev 2429)
@@ -27,3 +27,4 @@
 }
 assert '1', 'p case 1 when *[2, 1] then 1 else 2 end'
 assert '1', 'a = [7, 8]; p case 1 when *a, *[4, 5], 1 then 1 else 2 end'
+assert '1', 'p case :foo when *[Symbol] then 1 else 2 end'
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090829/0d54dc83/attachment-0001.html>


More information about the macruby-changes mailing list