Skip to content

Commit

Permalink
Used length instead of size in test
Browse files Browse the repository at this point in the history
  • Loading branch information
brainandforce committed Nov 11, 2023
1 parent f8d7810 commit 82d5efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/wavefunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
@test max_occupancy(wavecar) == max_occupancy(EnergiesOccupancies(wavecar))
@test min_energy(wavecar) <= fermi(wavecar) <= max_energy(wavecar)
@test all(
size(nonzero_g_vectors(wavecar)) >= count(!iszero(wavecar.data[:,b,k,s]))
length(nonzero_g_vectors(wavecar)) >= count(!iszero(wavecar.data[:,b,k,s]))
for b in 1:nband(wavecar), k in 1:nkpt(wavecar), s in 1:nspin(wavecar)
)
end

0 comments on commit 82d5efb

Please sign in to comment.