From 45d8c41ff5f3d284df5d85b2e57520d58ca02795 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Wed, 4 Dec 2024 14:05:36 +0100 Subject: [PATCH] invalidation for inactive now works --- test/ruleinvalidation.jl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/ruleinvalidation.jl b/test/ruleinvalidation.jl index 704ada2b6e..37cb21b08f 100644 --- a/test/ruleinvalidation.jl +++ b/test/ruleinvalidation.jl @@ -34,18 +34,14 @@ for m in methods(forward, Tuple{Any,Const{typeof(issue696)},Vararg{Any}}) end @test autodiff(Forward, issue696, Duplicated(1.0, 1.0))[1] ≈ 2.0 @static if VERSION < v"1.11-" -@test_broken autodiff(Forward, call_issue696, Duplicated(1.0, 1.0))[1] ≈ 2.0 + @test_broken autodiff(Forward, call_issue696, Duplicated(1.0, 1.0))[1] ≈ 2.0 else -@test autodiff(Forward, call_issue696, Duplicated(1.0, 1.0))[1] ≈ 2.0 + @test autodiff(Forward, call_issue696, Duplicated(1.0, 1.0))[1] ≈ 2.0 end # now test invalidation for `inactive` inactive(::typeof(issue696), args...) = nothing @test autodiff(Forward, issue696, Duplicated(1.0, 1.0))[1] ≈ 0.0 -@static if VERSION < v"1.11-" -@test_broken autodiff(Forward, call_issue696, Duplicated(1.0, 1.0))[1] ≈ 0.0 -else @test autodiff(Forward, call_issue696, Duplicated(1.0, 1.0))[1] ≈ 0.0 -end end # module