Skip to content

Commit

Permalink
Update tests for KNITRO 14 (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison authored Mar 26, 2024
1 parent cca0357 commit 9aebcd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/C_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ if KNITRO.knitro_version() >= v"12.1"
KN_get_solution(kc, Ref{Cint}(), obj, C_NULL, C_NULL)
KN_free(kc)
@test status == 0
@test obj[] 250.0 / 3.0
@test isapprox(obj[], 250.0 / 3.0, rtol=1e-6)

# Resolve with dumped MPS file
kc = KN_new()
Expand All @@ -122,7 +122,7 @@ if KNITRO.knitro_version() >= v"12.1"
KN_get_solution(kc, Ref{Cint}(), obj, C_NULL, C_NULL)
KN_free(kc)
@test status == 0
@test obj[] 250.0 / 3.0
@test isapprox(obj[], 250.0 / 3.0, rtol=1e-6)
end
end

Expand Down

0 comments on commit 9aebcd3

Please sign in to comment.