Show
Ignore:
Timestamp:
07/04/08 12:58:29 (5 months ago)
Author:
moritz
Message:

[spec] added a few semicolons in for.t; fixed plan in uc.t. bacek++

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S04-statements/for.t

    r21175 r21212  
    5858 
    5959# ... with referential sub 
    60 #?rakudo skip 'implicit invocant' 
    61 { 
     60#?rakudo skip 'parse error' 
     61{ 
     62    # XXX this test is wrong. Since some_sub_1 isn't a method in class 
     63    # Int, the method call will never work. 
     64    # There are other wrong occurences of this below 
     65    # what to do? Maybe something like this: 
     66    # class Int is also { method some_meth_1 { $d = $d ~ self } } 
    6267    my $d; 
    63     sub some_sub_1 ($arg) { $d = $d ~ $arg; } 
     68    sub some_sub_1 ($arg) { $d = $d ~ $arg; }; 
    6469    for 0 .. 5 { .some_sub_1 }; 
    6570    is($d, '012345', 'for 0 .. 5 { .some_sub } works'); 
     
    8489{ 
    8590    my $h; 
    86     sub some_sub_2 ($arg) { $h = $h ~ $arg; } 
     91    sub some_sub_2 ($arg) { $h = $h ~ $arg; }; 
    8792    for (0 .. 5) { .some_sub_2 }; 
    8893    is($h, '012345', 'for (0 .. 5) { .some_sub } works');