Skip to content

Commit 71f92a5

Browse files
committed
unittest/sparse-qp-wrapper: set precision of isApprox
1 parent d3cdc0a commit 71f92a5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/src/sparse_qp_wrapper.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,7 @@ TEST_CASE("ProxQP::sparse: sparse random strongly convex qp with equality and "
340340
<< std::endl;
341341
std::cout << "setup timing " << qp2.results.info.setup_time
342342
<< " solve time " << qp2.results.info.solve_time << std::endl;
343-
std::cout << "qp.results.x: " << qp.results.x
344-
<< "qp2.results.x: " << qp2.results.x << std::endl;
345-
CHECK(qp.results.x.isApprox(qp2.results.x));
343+
CHECK(qp.results.x.isApprox(qp2.results.x, 1E-4));
346344
}
347345
}
348346

0 commit comments

Comments
 (0)