Skip to content

Commit a36af6d

Browse files
add test for obj and grad
1 parent 0c08f78 commit a36af6d

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
@@ -176,4 +176,7 @@ include("rmodel_tests.jl")
176176
@test typeof(model) <: FirstOrderModel
177177
@test typeof(sol) == typeof(model.meta.x0)
178178
@test model.meta.nvar == n * m
179+
x = model.meta.x0
180+
@test typeof(obj(model, x)) <: Float64
181+
@test typeof(grad(model, x)) <: Vector{Float64}
179182
end

0 commit comments

Comments
 (0)