Changeset 21212
- Timestamp:
- 07/04/08 12:58:29 (3 months ago)
- Location:
- t/spec
- Files:
-
- 2 modified
-
S04-statements/for.t (modified) (2 diffs)
-
S29-str/uc.t (modified) (1 diff)
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'); -
t/spec/S29-str/uc.t
r21207 r21212 3 3 use Test; 4 4 5 plan 1 0;5 plan 11; 6 6 7 7 # L<S29/"Str"/=item uc>
