Move AsVector utility to fixture.h

PiperOrigin-RevId: 690577546
Change-Id: I2cebcffa1f2e3b0789f43e772e364c4762719ab3
This commit is contained in:
Yuval Tassa
2024-10-28 05:51:05 -07:00
committed by Copybara-Service
parent d95befaddd
commit a4a6248a06
15 changed files with 8 additions and 67 deletions
-4
View File
@@ -36,10 +36,6 @@ using ::std::string;
using ::std::setw;
using QCQP2Test = MujocoTest;
std::vector<mjtNum> AsVector(const mjtNum* array, int n) {
return std::vector<mjtNum>(array, array + n);
}
TEST_F(QCQP2Test, DegenerateAMatrix) {
// A 2x2 matrix with determinant zero.
const mjtNum Ain[9] { 6, -15, 2, -5 };