Skip to content

Commit

Permalink
Improve robustness of rand tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobnissen committed Jul 30, 2022
1 parent 50edbb1 commit 53dad74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/longsequences/randseq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ end # SamplerWeighted
test_isseq(seq, DNAAlphabet{2}, 25)

# Test that rand! correctly works
seq = LongDNA{4}("ATGCTAMWKSSWKHHNNNATVVCGATC")
seq = LongDNA{4}("ATGCTAMWKSSWKHHNNNATVVCGATADGCTTWWSYKMMNKATCGACTAYSWTACCCGATC")
Random.rand!(seq)
@test Set(seq) == Set(symbols(DNAAlphabet{2}()))

Expand Down

0 comments on commit 53dad74

Please sign in to comment.