Skip to content

Commit

Permalink
unittest: check status if qp was solved
Browse files Browse the repository at this point in the history
  • Loading branch information
fabinsch committed Jun 10, 2024
1 parent ef52809 commit d44e27e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/src/dense_qp_with_eq_and_in.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with degenerate inequality "
qp_random.l,
qp_random.u);
qp.solve();
DOCTEST_CHECK(qp.results.info.status == QPSolverOutput::PROXQP_SOLVED);
T pri_res = std::max(
(qp_random.A * qp.results.x - qp_random.b).lpNorm<Eigen::Infinity>(),
(helpers::positive_part(qp_random.C * qp.results.x - qp_random.u) +
Expand Down

0 comments on commit d44e27e

Please sign in to comment.