Skip to content

Commit

Permalink
More tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Jan 31, 2011
1 parent 25fdf3f commit 7bb5e2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion t/01-basic.t
Expand Up @@ -47,7 +47,11 @@ plan *;

{
my @fifty = 1L ... 50L;
is ~@fifty, ~(1..50), "1L ... 50L works right";
is +@fifty.grep(Math::BigInt), 50, "1L ... 50L enerated an array of 50 BigInts...";
is ~@fifty, ~(1..50), "... with the correct values.";
@fifty = 1L .. 50L;
is +@fifty.grep(Math::BigInt), 50, "1L .. 50L enerated an array of 50 BigInts...";
is ~@fifty, ~(1..50), "... with the correct values.";
}

done;
4 changes: 1 addition & 3 deletions t/05-metaops.t
Expand Up @@ -21,9 +21,7 @@ plan *;
}

is ~$b, ~$a, 'L* and * both generate is exactly 50!';
my @fifty = 1L ... 50L;
is ~@fifty, ~(1..50), "1L ... 50L works right";
# is ~reducewith(&infix:<*>, @fifty), ~$a, 'and so does reduced * on 1L..50L';
is ~reducewith(&infix:<*>, 1L..50L), ~$a, 'and so does reduced * on 1L..50L';
is ~reducewith(&infix:<L*>, 1..50), ~$a, 'and so does reduced L* on 1..50';

# skip "Rakudo does not properly find infix:<L*> for [L*]";
Expand Down

0 comments on commit 7bb5e2d

Please sign in to comment.