From dfc27997b26044d8c2696cd08a50a0ef21b11d1f Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <MichielCottaar@protonmail.com> Date: Thu, 1 Aug 2024 11:14:57 +0100 Subject: [PATCH] Be more forgiving in test --- test/test_sequences.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_sequences.jl b/test/test_sequences.jl index ce9aaae..fc04437 100644 --- a/test/test_sequences.jl +++ b/test/test_sequences.jl @@ -36,7 +36,7 @@ @test variables.rise_time(seq[:gradient]) ≈ min_rise_time rtol=1e-4 @testset "Explicitly minimising TE gives same result" begin alt = DiffusionSpinEcho(bval=1., TE=:min) - @test all(variables.duration.(seq) .≈ variables.duration.(alt)) + @test all(isapprox.(variables.duration.(seq), variables.duration.(alt), atol=1e-4, rtol=1e-6)) end end @testset "Maximise b-value" begin -- GitLab