Changeset 21212 for t/spec/S04-statements/for.t
- Timestamp:
- 07/04/08 12:58:29 (5 months ago)
- Files:
-
- 1 modified
-
t/spec/S04-statements/for.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
t/spec/S04-statements/for.t
r21175 r21212 58 58 59 59 # ... 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 } } 62 67 my $d; 63 sub some_sub_1 ($arg) { $d = $d ~ $arg; } 68 sub some_sub_1 ($arg) { $d = $d ~ $arg; }; 64 69 for 0 .. 5 { .some_sub_1 }; 65 70 is($d, '012345', 'for 0 .. 5 { .some_sub } works'); … … 84 89 { 85 90 my $h; 86 sub some_sub_2 ($arg) { $h = $h ~ $arg; } 91 sub some_sub_2 ($arg) { $h = $h ~ $arg; }; 87 92 for (0 .. 5) { .some_sub_2 }; 88 93 is($h, '012345', 'for (0 .. 5) { .some_sub } works');
