Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tests for Parcel (todo)
  • Loading branch information
sorear committed Jul 20, 2010
1 parent bfb226a commit 50423d2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test.pl
Expand Up @@ -10,7 +10,7 @@ ($num)
say ("1.." ~ $num);
}

plan 93;
plan 94;

ok 1, "one is true";
ok 2, "two is also true";
Expand Down Expand Up @@ -291,3 +291,14 @@ ($num)
ok "Hello".substr(1,3) eq "ell", "substr works";
ok "Hello".chars == 5, ".chars works";
}

{
my $buf = '';
sub cat(*@x) {
while @x {
$buf = $buf ~ @x.shift;
}
$buf;
}
ok cat(1, (2, 3), ((4, 5), (Nil, 7))) eq "123457", "parcels flatten";
}

0 comments on commit 50423d2

Please sign in to comment.