Skip to content

Commit 822722e

Browse files
committed
unittest: check status if qp was solved
1 parent 0d38939 commit 822722e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/src/dense_qp_with_eq_and_in.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with degenerate inequality "
197197
qp_random.l,
198198
qp_random.u);
199199
qp.solve();
200+
DOCTEST_CHECK(qp.results.info.status ==
201+
proxqp::QPSolverOutput::PROXQP_SOLVED);
200202
T pri_res = std::max(
201203
(qp_random.A * qp.results.x - qp_random.b).lpNorm<Eigen::Infinity>(),
202204
(helpers::positive_part(qp_random.C * qp.results.x - qp_random.u) +

0 commit comments

Comments
 (0)