Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
oxinabox and github-actions[bot] authored Feb 7, 2024
1 parent a52a213 commit 7230e94
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions test/tangent_types/structural_tangent.jl
Original file line number Diff line number Diff line change
Expand Up @@ -366,15 +366,14 @@ end
a = Tangent{Foo}(; x=2.0, y=-2.0)
b = Tangent{Foo}(; x=1.0)
@test (a - b) == Tangent{Foo}(; x=1.0, y=-2.0)

a = Tangent{Tuple{Float64, Float64}}(2.0, 3.0)
b = Tangent{Tuple{Float64, Float64}}(1.0, 1.0)
@test (a - b) == Tangent{Tuple{Float64, Float64}}(1.0, 2.0)

a = MutableTangent{MFoo}(x=1.5, y=1.5)
b = MutableTangent{MFoo}(x=0.5, y=0.5)
@test (a - b) == MutableTangent{MFoo}(x=1.0, y=1.0)

a = Tangent{Tuple{Float64,Float64}}(2.0, 3.0)
b = Tangent{Tuple{Float64,Float64}}(1.0, 1.0)
@test (a - b) == Tangent{Tuple{Float64,Float64}}(1.0, 2.0)

a = MutableTangent{MFoo}(; x=1.5, y=1.5)
b = MutableTangent{MFoo}(; x=0.5, y=0.5)
@test (a - b) == MutableTangent{MFoo}(; x=1.0, y=1.0)
end

@testset "scaling" begin
Expand Down

0 comments on commit 7230e94

Please sign in to comment.