Skip to content

Commit 71f7884

Browse files
authored
remove old atan2 tests
1 parent 3e6eee3 commit 71f7884

File tree

1 file changed

+6
-25
lines changed

1 file changed

+6
-25
lines changed

test/rulesets/Base/base.jl

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -51,32 +51,13 @@
5151
test_scalar(acscd, 1/x)
5252
test_scalar(acotd, 1/x)
5353
end
54-
@testset "Multivariate" begin
55-
@testset "atan2" begin
56-
# https://en.wikipedia.org/wiki/Atan2
57-
x, y = rand(2)
58-
ratan = atan(x, y)
59-
u = x^2 + y^2
60-
datan = y/u - 2x/u
61-
62-
r, pushforward = frule(atan, x, y)
63-
@test r === ratan
64-
@test pushforward(NamedTuple(), 1, 2) === datan
65-
66-
r, pullback = rrule(atan, x, y)
67-
@test r === ratan
68-
dself, df1, df2 = pullback(1)
69-
@test dself == NO_FIELDS
70-
@test df1 + 2df2 === datan
71-
end
72-
73-
@testset "sincos" begin
74-
x, Δx, x̄ = randn(3)
75-
Δz = (randn(), randn())
54+
55+
@testset "sincos" begin
56+
x, Δx, x̄ = randn(3)
57+
Δz = (randn(), randn())
7658

77-
frule_test(sincos, (x, Δx))
78-
rrule_test(sincos, Δz, (x, x̄))
79-
end
59+
frule_test(sincos, (x, Δx))
60+
rrule_test(sincos, Δz, (x, x̄))
8061
end
8162
end # Trig
8263

0 commit comments

Comments
 (0)