MCPcopy Create free account
hub / github.com/PSOPT/psopt / TEST

Function TEST

tests/test_something.cpp:7–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5typedef Eigen::Matrix<adouble, 3, 1> Vector3ad;
6
7TEST(Utils, crossProduct) {
8 Vector3ad a, b, c;
9 a << 1, 2, 3;
10 b << 1, 5, 7;
11
12 cross(a.data(), b.data(), c.data());
13
14 ASSERT_EQ(c[0], -1);
15 ASSERT_EQ(c[1], -4);
16 ASSERT_EQ(c[2], 3);
17}

Callers

nothing calls this directly

Calls 1

crossFunction · 0.85

Tested by

no test coverage detected