Skip to content

Commit 7dd12db

Browse files
committed
Update tests
1 parent 758ef2a commit 7dd12db

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

test/permutations.jl

+1-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
using Combinatorics
22
using Base.Test
33

4-
import Combinatorics: ipermute!, isperm, levicivita, nthperm, nthperm!, parity, permutations, permute!
5-
6-
p = shuffle([1:1000;])
7-
@test isperm(p)
8-
9-
push!(p, 1)
10-
@test !isperm(p)
11-
12-
a = randcycle(10)
13-
@test ipermute!(permute!([1:10;], a),a) == [1:10;]
14-
15-
# PR 12785
16-
let a = 2:-1:1
17-
@test ipermute!(permute!([1, 2], a), a) == [1, 2]
18-
end
4+
import Combinatorics: levicivita, nthperm, nthperm!, parity, permutations
195

206
@test collect(permutations("abc")) == Any[['a','b','c'],['a','c','b'],['b','a','c'],
217
['b','c','a'],['c','a','b'],['c','b','a']]

0 commit comments

Comments
 (0)