We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0df040f commit 6e2f430Copy full SHA for 6e2f430
test/rulesets/Base/base.jl
@@ -1,4 +1,14 @@
1
@testset "base.jl" begin
2
+ @testset "zero/one" begin
3
+ for f in [zero, one]
4
+ for x in [1.0, 1.0im, [10.0+im 11.0-im; 12.0+2im 13.0-3im]]
5
+ test_frule(f, x)
6
+ test_rrule(f, x)
7
+ end
8
9
+ test_frule(zero, [1.0, 2.0, 3.0])
10
+ test_rrule(zero, [1.0, 2.0, 3.0])
11
12
@testset "copysign" begin
13
# don't go too close to zero as the numerics may jump over it yielding wrong results
14
@testset "at $y" for y in (-1.1, 0.1, 100.0)
0 commit comments