New cpp folder structure

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk
2025-07-17 22:35:52 +03:00
committed by Konstantin Pastbin
parent c9cbb64f12
commit 76ffc99abd
2390 changed files with 345 additions and 339 deletions

View File

@@ -0,0 +1,22 @@
#include "testing/testing.hpp"
#include "geometry/rect2d.hpp"
UNIT_TEST(Rect_Intersect)
{
m2::RectD r(0, 0, 100, 100);
m2::RectD r1(10, 10, 20, 20);
TEST(r1.IsIntersect(r), ());
TEST(r.IsIntersect(r1), ());
m2::RectD r2(-100, -100, -50, -50);
TEST(!r2.IsIntersect(r), ());
TEST(!r.IsIntersect(r2), ());
m2::RectD r3(-10, -10, 10, 10);
TEST(r3.IsIntersect(r), ());
TEST(r.IsIntersect(r3), ());
}