Skip to content

Commit

Permalink
Add isapprox comparison in Test
Browse files Browse the repository at this point in the history
  • Loading branch information
ykharkov committed Mar 4, 2024
1 parent 421901e commit 553db56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ using JSON, JSON3
mps_density = result["density"][:, end]
expected_density = [0.49558400861051327,0.4955839949350386,0.49558370707943783,0.49558323080865946]
@test mps_density == expected_density
@test isapprox(mps_density, expected_density; atol=1e-7)
# add apprx cmoparison isapprox(array1, array2; atol=tolerance)
end

0 comments on commit 553db56

Please sign in to comment.