Skip to content

Commit e105b7a

Browse files
add test for obj and grad
1 parent 080be5c commit e105b7a

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
@@ -156,4 +156,7 @@ end
156156
@test typeof(model) <: FirstOrderModel
157157
@test typeof(sol) == typeof(model.meta.x0)
158158
@test model.meta.nvar == n * m
159+
x = model.meta.x0
160+
@test typeof(obj(model, x)) <: Float64
161+
@test typeof(grad(model, x)) <: Vector{Float64}
159162
end

0 commit comments

Comments
 (0)