Skip to content

Commit 2a9a3f7

Browse files
committed
tests for type of type
1 parent fb11a9c commit 2a9a3f7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/forward.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,18 @@ end
148148
end
149149

150150

151+
@testset "types in tuples" begin
152+
function foo(a)
153+
tup = (a, 2a, Int)
154+
return tup[2]
155+
end
156+
157+
let var"'" = Diffractor.PrimeDerivativeFwd
158+
@test foo'(100.0) == 2.0
159+
end
160+
end
161+
162+
151163
@testset "taylor_compatible" begin
152164
taylor_compatible = Diffractor.taylor_compatible
153165

0 commit comments

Comments
 (0)