Skip to content

Commit 79bac43

Browse files
committed
Fix hypot test
1 parent bd18679 commit 79bac43

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/rulesets/Base/base.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,18 @@ end
8383
x, y = rand(2)
8484
h, dxy = frule(hypot, x, y)
8585

86-
@test extern(dxy(One(), Zero())) === y / h
87-
@test extern(dxy(Zero(), One())) === x / h
86+
@test extern(dxy(One(), Zero())) === x / h
87+
@test extern(dxy(Zero(), One())) === y / h
8888

8989
cx, cy = cast((One(), Zero())), cast((Zero(), One()))
9090
dx, dy = extern(dxy(cx, cy))
91-
@test dx === y / h
92-
@test dy === x / h
91+
@test dx === x / h
92+
@test dy === y / h
9393

9494
cx, cy = cast((rand(), Zero())), cast((Zero(), rand()))
9595
dx, dy = extern(dxy(cx, cy))
96-
@test dx === y / h * cx.value[1]
97-
@test dy === x / h * cy.value[2]
96+
@test dx === x / h * cx.value[1]
97+
@test dy === y / h * cy.value[2]
9898
end
9999
end
100100
@testset "identity" begin

0 commit comments

Comments
 (0)