From b9f186f8f044ad94b469773ae8fe722fea457983 Mon Sep 17 00:00:00 2001 From: Lyndon White Date: Thu, 24 Jun 2021 08:48:27 +0100 Subject: [PATCH] Update test/chainrules.jl Co-authored-by: Dhairya Gandhi --- test/chainrules.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/chainrules.jl b/test/chainrules.jl index 66058c93d..32bdd3799 100644 --- a/test/chainrules.jl +++ b/test/chainrules.jl @@ -225,7 +225,7 @@ using ChainRulesCore, ChainRulesTestUtils, Zygote # notice here we mess with the primal doing 2.0 rather than 1.0, this is for testing purposes # and also because apparently people actually want to do this. Weird, but 🤷 # https://github.com/SciML/SciMLBase.jl/issues/69#issuecomment-865639754 - P(2.0), _->NoTangent() + P(2.0), _ -> (NoTangent(),) end @assert StructForTestingTypeOnlyRRules().x == 1.0