Skip to content

Commit

Permalink
Missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mfherbst committed Dec 20, 2022
1 parent 1db4195 commit 049056e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/atom.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,12 @@ using Test
Atom(:H, zeros(3) * u"Å")])
@test length(system) == 3
end

@testset "Nothing or zero velocity" begin
at = Atom(:Si, ones(3) * u"Å"; extradata=42)
@test velocity(at) == zeros(3)u"Å/s"

at = Atom(:Si, ones(3) * u"Å", missing; extradata=42)
@test velocity(at) == zeros(3)u"Å/s"
end
end

0 comments on commit 049056e

Please sign in to comment.