From 72d7a0712840e9f54f3939b208c1631c8b67a17d Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sat, 12 Oct 2024 15:02:00 -0400 Subject: [PATCH] Fix iterator tests for v1.11 The idxs save seems to be slightly floating point different from the non-idxs save on v1.11. Not entirely sure why but it seems to be something with the effect system that makes the non-idxs case slightly more optimal in some way. --- test/integrators/iterator_tests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integrators/iterator_tests.jl b/test/integrators/iterator_tests.jl index 5f01a0925b..4870226c86 100644 --- a/test/integrators/iterator_tests.jl +++ b/test/integrators/iterator_tests.jl @@ -62,7 +62,7 @@ end A = integrator([1.0; 2.0]) B = integrator([1.0; 2.0], idxs = 1:2:5) -@test minimum([A[i][1:2:5] == B[i] for i in 1:length(A)]) +@test minimum([A[i][1:2:5] ≈ B[i] for i in 1:length(A)]) integrator(A[1], 0.5) @test A[1] == integrator(0.5)