We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd64864 commit a52a213Copy full SHA for a52a213
1 file changed
test/tangent_types/structural_tangent.jl
@@ -370,6 +370,11 @@ end
370
a = Tangent{Tuple{Float64, Float64}}(2.0, 3.0)
371
b = Tangent{Tuple{Float64, Float64}}(1.0, 1.0)
372
@test (a - b) == Tangent{Tuple{Float64, Float64}}(1.0, 2.0)
373
+
374
+ a = MutableTangent{MFoo}(x=1.5, y=1.5)
375
+ b = MutableTangent{MFoo}(x=0.5, y=0.5)
376
+ @test (a - b) == MutableTangent{MFoo}(x=1.0, y=1.0)
377
378
end
379
380
@testset "scaling" begin
0 commit comments