Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tests cross with three lists
  • Loading branch information
moritz committed Oct 1, 2011
1 parent 44ff863 commit 4eccfcc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S03-metaops/cross.t
@@ -1,7 +1,7 @@
use v6;

use Test;
plan 25;
plan 26;

# L<S03/List infix precedence/the cross operator>
ok eval('<a b> X <c d>'), 'cross non-meta operator parses';
Expand Down Expand Up @@ -103,4 +103,8 @@ is (1 X* 3,4), (3, 4), 'cross-product works with scalar left side';
is (1, 2 X* 3), (3, 6), 'cross-product works with scalar right side';
is (1 X* 3), (3), 'cross-product works with scalar both sides';

is (<a b> X <c d> X < e f>).join(','),
'a,c,e,a,c,f,a,d,e,a,d,f,b,c,e,b,c,f,b,d,e,b,d,f',
'cross works with three lists';

# vim: ft=perl6

0 comments on commit 4eccfcc

Please sign in to comment.