Skip to content

Commit 132b074

Browse files
oscardssmithtansongchen
authored andcommitted
fix test
1 parent 6354bb8 commit 132b074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/derivative.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ end
2727
g(x) = x .^ 2
2828
@test derivative!(zeros(2), g, [1.0, 2.0], [1.0, 0.0], Val(1)) [2.0, 0.0]
2929
gzero(x) = [1.0, 1.0]
30-
@test derivative!(zeros(2), gzero, [1.0, 2.0], [1.0, 0.0], Val(1)) == [0.0, 0.0]
30+
@test derivative(gzero, [1.0, 2.0], [1.0, 0.0], Val(1)) == [0.0, 0.0]
3131
end
3232

3333
@testset "I-function, I-derivative" begin

0 commit comments

Comments
 (0)