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

Function UNIT_TEST

libs/geometry/geometry_tests/rect_test.cpp:4–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "testing/testing.hpp"
3
4UNIT_TEST(Rect_Intersect)
5{
6 m2::RectD r(0, 0, 100, 100);
7 m2::RectD r1(10, 10, 20, 20);
8
9 TEST(r1.IsIntersect(r), ());
10 TEST(r.IsIntersect(r1), ());
11
12 m2::RectD r2(-100, -100, -50, -50);
13
14 TEST(!r2.IsIntersect(r), ());
15 TEST(!r.IsIntersect(r2), ());
16
17 m2::RectD r3(-10, -10, 10, 10);
18
19 TEST(r3.IsIntersect(r), ());
20 TEST(r.IsIntersect(r3), ());
21}

Callers

nothing calls this directly

Calls 2

TESTFunction · 0.85
IsIntersectMethod · 0.45

Tested by

no test coverage detected