@@ -20,7 +20,7 @@ function test_scalar(f, z; rtol=1e-9, atol=1e-9, fdm=_fdm, fkwargs=NamedTuple(),
20
20
# To simplify some of the calls we make later lets group the kwargs for reuse
21
21
rule_test_kwargs = (; rtol= rtol, atol= atol, fdm= fdm, fkwargs= fkwargs, check_inferred= check_inferred, kwargs... )
22
22
isapprox_kwargs = (; rtol= rtol, atol= atol, kwargs... )
23
- testset_name = isnothing ( testset_name) ? " test_scalar: $f at $z " : testset_name
23
+ testset_name = testset_name === nothing ? " test_scalar: $f at $z " : testset_name
24
24
25
25
@testset " $(testset_name) " begin
26
26
# z = x + im * y
@@ -116,7 +116,7 @@ function test_frule(
116
116
)
117
117
# To simplify some of the calls we make later lets group the kwargs for reuse
118
118
isapprox_kwargs = (; rtol= rtol, atol= atol, kwargs... )
119
- testset_name = isnothing ( testset_name) ? " test_frule: $f on $(_string_typeof (args)) " : testset_name
119
+ testset_name = testset_name === nothing ? " test_frule: $f on $(_string_typeof (args)) " : testset_name
120
120
# and define a helper closure
121
121
call_on_copy (f, xs... ) = deepcopy (f)(deepcopy (xs)... ; deepcopy (fkwargs)... )
122
122
@@ -195,7 +195,7 @@ function test_rrule(
195
195
)
196
196
# To simplify some of the calls we make later lets group the kwargs for reuse
197
197
isapprox_kwargs = (; rtol= rtol, atol= atol, kwargs... )
198
- testset_name = isnothing ( testset_name) ? " test_rrule: $f on $(_string_typeof (args)) " : testset_name
198
+ testset_name = testset_name === nothing ? " test_rrule: $f on $(_string_typeof (args)) " : testset_name
199
199
# and define helper closure over fkwargs
200
200
call (f, xs... ) = f (xs... ; fkwargs... )
201
201
0 commit comments