Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaMolSim committed Jun 1, 2024
1 parent 5710cbc commit b6b3253
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test_utils.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

using AtomsBuilder, Test, AtomsBase, Unitful, Random

##

Random.seed!(1234)
sys = bulk(:Ti, cubic=true) * 5
sys = randz!(sys, [ :Ti => 0.5, :O => 0.5 ])
Z = atomic_number(sys)
@test count( Z .== 8 ) / length(Z) > 0.45
@test count( Z .== 22 ) / length(Z) > 0.45

0 comments on commit b6b3253

Please sign in to comment.