Skip to content

Commit

Permalink
Update test/chainrules.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Dhairya Gandhi <dhairya@juliacomputing.com>
  • Loading branch information
oxinabox and DhairyaLGandhi authored Jun 24, 2021
1 parent 2dab48f commit b9f186f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/chainrules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9f186f

Please sign in to comment.