Skip to content

Commit 7b35c8d

Browse files
fabinschjcarpent
authored andcommitted
unittest/sparse-qp-wrapper: use isApprox
1 parent fa1f677 commit 7b35c8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/src/sparse_qp_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +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-
CHECK(qp.results.x == qp2.results.x);
343+
CHECK(qp.results.x.isApprox(qp2.results.x));
344344
}
345345
}
346346

0 commit comments

Comments
 (0)