Skip to content

Commit fb31b19

Browse files
committed
test that the first dual values match
1 parent b71c498 commit fb31b19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/forwarddiff_overloads.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ backslash_overdet = A_overdet \ b_overdet
257257
# Primal values should match
258258
@test ForwardDiff.value.(sol_overdet.u) ForwardDiff.value.(backslash_overdet)
259259

260+
# Dual values should match
261+
@test ForwardDiff.partials.(sol_overdet.u) ForwardDiff.partials.(backslash_overdet)
262+
260263
# Test with cache - should give identical results
261264
cache_overdet = init(prob_overdet)
262265
sol_cache_overdet = solve!(cache_overdet)

0 commit comments

Comments
 (0)