Skip to content

Commit 43943d8

Browse files
author
Miha Zgubic
committed
fix test
1 parent 1a7cc3c commit 43943d8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

test/tangent_types/notimplemented.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747

4848
# unsupported operations
4949
E = ChainRulesCore.NotImplementedException
50-
@test_throws E -ni
5150
for a in (true, x, NoTangent(), ZeroTangent(), thunk)
5251
@test_throws E ni - a
5352
@test_throws E a - ni

test/tangent_types/tangent.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ end
324324
@testset "-Tangent" begin
325325
t = Tangent{Foo}(; x=1.0, y=-2.0)
326326
@test -t == Tangent{Foo}(; x=-1.0, y=2.0)
327-
@test -1.0*t == -t
327+
@test -1.0 * t == -t
328328
end
329329

330330
@testset "scaling" begin

0 commit comments

Comments
 (0)