Skip to content

Commit c5102fa

Browse files
committed
Add Function that we could not take derivative of before but can now
1 parent 3ca3fc9 commit c5102fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/DerivativeTest.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,8 @@ end
100100
@test_throws DimensionMismatch ForwardDiff.derivative(sum, fill(2pi, 3))
101101
end
102102

103+
@testset "function that calls a floating point constructor" begin
104+
@test ForwardDiff.derivative(x->2*Float32(x), 3) === 2f0
105+
end
106+
103107
end # module

0 commit comments

Comments
 (0)