|
1 | 1 | @test [combinations([])...] == [] |
2 | | -@test [combinations(['a', 'b', 'c'])...] == Any[['a'],['b'],['c'],['a','b'],['a','c'],['b','c'],['a','b','c']] |
| 2 | +@test [combinations(['a', 'b', 'c'])...] == [['a'],['b'],['c'],['a','b'],['a','c'],['b','c'],['a','b','c']] |
3 | 3 |
|
4 | | -@test [combinations("abc",3)...] == Any[['a','b','c']] |
5 | | -@test [combinations("abc",2)...] == Any[['a','b'],['a','c'],['b','c']] |
6 | | -@test [combinations("abc",1)...] == Any[['a'],['b'],['c']] |
7 | | -@test [combinations("abc",0)...] == Any[[]] |
| 4 | +@test [combinations("abc",3)...] == [['a','b','c']] |
| 5 | +@test [combinations("abc",2)...] == [['a','b'],['a','c'],['b','c']] |
| 6 | +@test [combinations("abc",1)...] == [['a'],['b'],['c']] |
| 7 | +@test [combinations("abc",0)...] == [[]] |
8 | 8 | @test [combinations("abc",-1)...] == [] |
9 | 9 |
|
10 | 10 | @test filter(x->iseven(x[1]),[combinations([1,2,3],2)...]) == Any[[2,3]] |
|
0 commit comments