Skip to content

Commit 205300e

Browse files
add test for obj and grad
1 parent 0780f78 commit 205300e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/runtests.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,7 @@ end
161161
@test typeof(model) <: FirstOrderModel
162162
@test typeof(sol) == typeof(model.meta.x0)
163163
@test model.meta.nvar == n * m
164+
x = model.meta.x0
165+
@test typeof(obj(model, x)) <: Float64
166+
@test typeof(grad(model, x)) <: Vector{Float64}
164167
end

0 commit comments

Comments
 (0)