- Timestamp:
- 10/15/08 18:21:22 (3 months ago)
- Location:
- t
- Files:
-
- 4 modified
-
blocks/subroutine.t (modified) (2 diffs)
-
examples/99problems/problem39.t (modified) (1 diff)
-
examples/99problems/problem40.t (modified) (1 diff)
-
examples/99problems/problem41.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
t/blocks/subroutine.t
r21234 r22623 3 3 use Test; 4 4 5 plan 1 7;5 plan 16; 6 6 7 7 sub foobar ($var) { … … 84 84 my @array = 3..7; 85 85 is(try { unpack_array(@array) }, 3, 'unpacking an array parameter', :todo<feature>); 86 87 #L<S06/"Unpacking hash parameters">88 89 eval 'sub unpack_hash({:$yo, *%other}){ return $yo; }';90 91 my %params = yo => 3, nope => 4;92 is(try { unpack_hash(%params) }, 3, 'unpacking a hash parameter', :todo); -
t/examples/99problems/problem39.t
r20490 r22623 11 11 my @p = (2); 12 12 for 3..$to -> $x { 13 push @p, $x unless grep { $x % $_ == 0 }, 2..ceil sqrt $x;13 push @p, $x unless grep { $x % $_ == 0 }, 2..ceiling sqrt $x; 14 14 } 15 15 grep { $_ >= $from }, @p; -
t/examples/99problems/problem40.t
r20490 r22623 19 19 my @p = (2); 20 20 for 3..$to -> $x { 21 push @p, $x unless grep { $x % $_ == 0 }, 2..ceil sqrt $x;21 push @p, $x unless grep { $x % $_ == 0 }, 2..ceiling sqrt $x; 22 22 } 23 23 grep { $_ >= $from }, @p; -
t/examples/99problems/problem41.t
r20490 r22623 33 33 my @p = (2); 34 34 for 3..$to -> $x { 35 push @p, $x unless grep { $x % $_ == 0 }, 2..ceil sqrt $x;35 push @p, $x unless grep { $x % $_ == 0 }, 2..ceiling sqrt $x; 36 36 } 37 37 grep { $_ >= $from }, @p;
