MCPcopy Create free account
hub / github.com/comaps/comaps / UNIT_TEST

Function UNIT_TEST

libs/base/base_tests/matrix_test.cpp:5–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "base/matrix.hpp"
4
5UNIT_TEST(Matrix_Inverse_Simple)
6{
7 math::Matrix<double, 3, 3> m;
8
9 m = math::Identity<double, 3>();
10
11 m(2, 0) = 2;
12
13 math::Matrix<double, 3, 3> m1 = math::Inverse(m);
14
15 TEST_EQUAL((m1 * m).Equal(math::Identity<double, 3>()), true, ());
16}
17
18UNIT_TEST(Matrix_Inverse_AllElementsNonZero)
19{

Callers

nothing calls this directly

Calls 2

InverseFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected