Show
Ignore:
Timestamp:
07/02/08 06:01:18 (5 months ago)
Author:
pmichaud
Message:

Some updates to S29-list.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S29-list/map.t

    r20954 r21162  
    2424} 
    2525 
    26 #?rakudo skip "adverbial closure" 
     26#?rakudo skip "adverbial block" 
    2727{ 
    2828    my @result = @list.map():{ $_ * 2 }; 
     
    4545} 
    4646 
    47 #?rakudo skip "colon invocant syntax" 
     47#?rakudo skip "closure as non-final argument" 
    4848{ 
    4949    my @result = map { $_ * 2 }: @list; 
     
    101101 
    102102# map with n-ary functions 
    103 #?rakudo skip "colon invocant syntax" 
     103#?rakudo skip "adverbial block" 
    104104{ 
    105105  is ~(1,2,3,4).map:{ $^a + $^b             }, "3 7", "map() works with 2-ary functions"; 
     
    110110 
    111111# .map shouldn't work on non-arrays 
     112## XXX pmichaud, 2008-07-01:  .map should work on non-list values 
    112113{ 
    113114  #?pugs 2 todo 'bug' 
    114115  dies_ok { 42.map: { $_ } },    "method form of map should not work on numbers"; 
    115116  dies_ok { "str".map: { $_ } }, "method form of map should not work on strings"; 
    116   #?rakudo skip "colon invocant syntax" 
     117  #?rakudo skip "adverbial block" 
    117118  is ~(42,).map:{ $_ }, "42",   "method form of map should work on arrays"; 
    118119}; 
     
    131132=end pod 
    132133 
    133 #?rakudo skip "colon invocant syntax" 
     134##  XXX pmichaud, 2008-07-01:   As the test is written below, the 
     135##    @expected and "map of ..." arguments are arguments of .map(...) 
     136##    and not of is(...).  See S12:406. 
     137#?rakudo skip "syntax error in test" 
    134138{ 
    135139  my @expected = ("foo","bar"); 
     
    140144 
    141145 
    142 #?rakudo skip "no hashes at the moment" 
     146#?rakudo skip '{} hash composer not implemented' 
    143147{ 
    144148  my @a = (1, 2, 3);