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 13, 2024
1 parent 0d38939 commit 822722e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 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,8 @@ 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 ==
proxqp::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 822722e

Please sign in to comment.