Skip to content

Commit 3c5111f

Browse files
* fix tests for JuliaDiff/ChainRulesCore.jl#298 * Apply suggestions from code review Co-authored-by: Lyndon White <[email protected]> Co-authored-by: Lyndon White <[email protected]>
1 parent efd4c0e commit 3c5111f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1212
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1313

1414
[compat]
15-
ChainRulesCore = "0.9.26"
15+
ChainRulesCore = "0.9.29"
1616
ChainRulesTestUtils = "0.6.1"
1717
Compat = "3"
1818
FiniteDifferences = "0.11, 0.12"

test/rulesets/Random/random.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Random.rand(d::NormalDistribution) = d.μ + d.σ*randn()
4646
x, pb = rrule(rand, args...)
4747
@test x isa xType
4848
dself, dargs = Iterators.peel(pb(10.0))
49-
@test dself isa Zero
49+
@test iszero(dself)
5050
@test all(darg isa DoesNotExist for darg in dargs)
5151
end
5252

0 commit comments

Comments
 (0)