Skip to content

Commit 40da34b

Browse files
committed
fix missing imports
1 parent ba5841e commit 40da34b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/forward.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module forward_tests
22
using Diffractor
3-
using Diffractor: TaylorBundle
3+
using Diffractor: TaylorBundle, ZeroBundle
44
using ChainRules
55
using ChainRulesCore
66
using ChainRulesCore: ZeroTangent, NoTangent, frule_via_ad, rrule_via_ad
@@ -10,8 +10,10 @@ using Test
1010

1111

1212
# Minimal 2-nd order forward smoke test
13-
@test Diffractor.∂☆{2}()(Diffractor.ZeroBundle{2}(sin),
14-
Diffractor.ExplicitTangentBundle{2}(1.0, (1.0, 1.0, 0.0)))[Diffractor.CanonicalTangentIndex(1)] == sin'(1.0)
13+
let var"'" = Diffractor.PrimeDerivativeFwd
14+
@test Diffractor.∂☆{2}()(ZeroBundle{2}(sin),
15+
Diffractor.ExplicitTangentBundle{2}(1.0, (1.0, 1.0, 0.0)))[Diffractor.CanonicalTangentIndex(1)] == sin'(1.0)
16+
end
1517

1618
# Simple Forward Mode tests
1719
let var"'" = Diffractor.PrimeDerivativeFwd

0 commit comments

Comments
 (0)