Skip to content

Commit

Permalink
Add test for invperm for incorrect permutation (JuliaLang#47869)
Browse files Browse the repository at this point in the history
  • Loading branch information
petvana authored Jan 4, 2023
1 parent b604fc9 commit b6794f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/combinatorics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ end
@test invperm((1,2)) == (1,2)
@test invperm((2,1)) == (2,1)
@test_throws ArgumentError invperm((1,3))
@test_throws ArgumentError invperm((1,1))

push!(p, 1)
@test !isperm(p)
Expand Down

0 comments on commit b6794f9

Please sign in to comment.