Skip to content

Commit 991ca66

Browse files
author
Miha Zgubic
committed
add test for -Tangent
1 parent 5025704 commit 991ca66

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/tangent_types/tangent.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,11 @@ end
321321
@test c * t == c * 2
322322
end
323323

324+
@testset "-Tangent" begin
325+
t = Tangent{Foo}(; x=1.0, y=-2.0)
326+
@test -t == Tangent{Foo}(; x=-1.0, y=2.0)
327+
end
328+
324329
@testset "scaling" begin
325330
@test (
326331
2 * Tangent{Foo}(; y=1.5, x=2.5) ==

0 commit comments

Comments
 (0)