Skip to content

Commit

Permalink
Increase test tolerance a little
Browse files Browse the repository at this point in the history
The issue is that IO involves serialisation to string and potential unit conversion, which is inherently brittle. We just care to catch accidental unit errors or accidental forgotten parameters etc, so raising the relative tolerance should be fine.
  • Loading branch information
mfherbst authored Apr 8, 2023
1 parent 2c21711 commit 8d9f452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/atomsbase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ end
ExtXYZ.save(outfile, system)
ExtXYZ.load(outfile)::AbstractSystem
end
test_approx_eq(system, io_system; rtol=1e-6)
test_approx_eq(system, io_system; rtol=1e-4)
end

0 comments on commit 8d9f452

Please sign in to comment.