[macruby-changes] [1113] MacRuby/branches/experimental/test_roxor.rb

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 23 14:42:31 PDT 2009


Revision: 1113
          http://trac.macosforge.org/projects/ruby/changeset/1113
Author:   lsansonetti at apple.com
Date:     2009-03-23 14:42:31 -0700 (Mon, 23 Mar 2009)
Log Message:
-----------
added a failing test

Modified Paths:
--------------
    MacRuby/branches/experimental/test_roxor.rb

Modified: MacRuby/branches/experimental/test_roxor.rb
===================================================================
--- MacRuby/branches/experimental/test_roxor.rb	2009-03-23 20:40:22 UTC (rev 1112)
+++ MacRuby/branches/experimental/test_roxor.rb	2009-03-23 21:42:31 UTC (rev 1113)
@@ -300,7 +300,7 @@
     p :ok if foo.is_a?(Array)
   }
 
-  assert '42', "a = [30,10,2]; x,y,z = a; p x+y+z"
+  assert '42', "a = [30, 10,  2]; x,y,z = a; p x+y+z"
   assert '42', "a = [30, 10, *2]; x,y,z = a; p x+y+z"
 
   assert '42', "def foo=(x); @x=x; end; x,self.foo = 1,41; p @x+x"
@@ -319,6 +319,8 @@
   assert ':ok', '* = 1,2; p :ok'
   assert '[1, 2]', 'x = (* = 1,2); p x'
 
+  assert '[42]', "a=[1,2,3]; b=[0,3]; a[*b]=42; p a"
+
   # TODO add more multiple assignments test
 
   assert '42', "a=[20]; a[0] += 22; p a[0]"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090323/0a27d4d8/attachment-0001.html>


More information about the macruby-changes mailing list