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

Function UNIT_TEST

libs/geometry/geometry_tests/transformations_test.cpp:6–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "testing/testing.hpp"
5
6UNIT_TEST(Transformations_Shift)
7{
8 math::Matrix<double, 3, 3> m = math::Shift(math::Identity<double, 3>(), 200.0, 100.0);
9
10 m2::PointD pt = m2::PointD(30, 20) * m;
11
12 TEST(pt.EqualDxDy(m2::PointD(230, 120), 1.0E-10), ());
13}
14
15UNIT_TEST(Transformations_ShiftScale)
16{

Callers

nothing calls this directly

Calls 6

TESTFunction · 0.85
ScaleFunction · 0.85
InverseFunction · 0.85
ShiftFunction · 0.50
RotateFunction · 0.50
EqualDxDyMethod · 0.45

Tested by

no test coverage detected