From 8d9f45271d4eea918e142fc684285c4adce29872 Mon Sep 17 00:00:00 2001 From: "Michael F. Herbst" Date: Sat, 8 Apr 2023 11:48:35 +0200 Subject: [PATCH] Increase test tolerance a little 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. --- test/atomsbase.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/atomsbase.jl b/test/atomsbase.jl index 76d68b8..83eb85a 100644 --- a/test/atomsbase.jl +++ b/test/atomsbase.jl @@ -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