Skip to content

Commit e41490f

Browse files
committed
tests for type of type
1 parent b742b3e commit e41490f

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
@@ -161,6 +161,18 @@ end
161161
end
162162

163163

164+
@testset "types in tuples" begin
165+
function foo(a)
166+
tup = (a, 2a, Int)
167+
return tup[2]
168+
end
169+
170+
let var"'" = Diffractor.PrimeDerivativeFwd
171+
@test foo'(100.0) == 2.0
172+
end
173+
end
174+
175+
164176
@testset "taylor_compatible" begin
165177
taylor_compatible = Diffractor.taylor_compatible
166178

0 commit comments

Comments
 (0)