Skip to content

Commit cc79085

Browse files
committed
Test: ListX, SetX, SumX, ProductX support lists with holes
1 parent c156fb2 commit cc79085

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tst/testinstall/xfuncs.tst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@ gap> testXfuncs([2], [2], x -> x);
1919
true
2020
gap> testXfuncs([2,3], [2,3], x -> x);
2121
true
22+
gap> testXfuncs([2,3], [2,,3], x -> x); # holes are supported
23+
true
2224
gap> testXfuncs([2,3,2], [2,3,2], x -> x);
2325
true
2426
gap> testXfuncs([ [1,1], [1,2], [1,3], [2,1], [2,2], [2,3] ],
2527
> [1,2], [1,2,3], function(x,y) return [x,y]; end);
2628
true
29+
gap> testXfuncs([ [1,1], [1,2], [1,3], [2,1], [2,2], [2,3] ],
30+
> [1,,2], [1,,2,,3], function(x,y) return [x,y]; end); # holes really are supported
31+
true
2732
gap> testXfuncs([ [ 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], [ 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] ], [1..2],[1],[2],[3],[4],[5],[6],[7],[8],[9],[10], function(x...) return x; end);
2833
true
2934
gap> sumlim := function(x...) return Sum(x) < 5; end;;

0 commit comments

Comments
 (0)