diff options
author | Alex Zolotarev <alex@mapswithme.com> | 2013-07-10 17:48:25 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:58:34 +0300 |
commit | 58049710488a90b919ff4091be18a205920a78a3 (patch) | |
tree | d3034c9a1fdfc3e85b314ea621fe7c4cd952b14b /geometry/geometry_tests/anyrect_test.cpp | |
parent | 55c508fff73dda9c2a44b652f5756f740b46ca6d (diff) |
Fixed warnings in our code
Diffstat (limited to 'geometry/geometry_tests/anyrect_test.cpp')
-rw-r--r-- | geometry/geometry_tests/anyrect_test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/geometry/geometry_tests/anyrect_test.cpp b/geometry/geometry_tests/anyrect_test.cpp index e998fa0108..e3d9a8872e 100644 --- a/geometry/geometry_tests/anyrect_test.cpp +++ b/geometry/geometry_tests/anyrect_test.cpp @@ -1,5 +1,3 @@ -#include "../../base/SRC_FIRST.hpp" - #include "../../testing/testing.hpp" #include "../any_rect2d.hpp" @@ -35,8 +33,11 @@ UNIT_TEST(AnyRect_TestConvertFrom) UNIT_TEST(AnyRect_ZeroRect) { m2::AnyRectD r0(m2::RectD(0, 0, 0, 0)); - m2::AnyRectD r1(m2::Offset(r0, m2::PointD(300.0, 300.0))); + m2::PointD const centerPt(300.0, 300.0); + m2::AnyRectD r1(m2::Offset(r0, centerPt)); + TEST_EQUAL(r1.GlobalCenter(), centerPt, ()); m2::AnyRectD r2(m2::Inflate(r0, 2.0, 2.0)); + TEST_EQUAL(r2.GetLocalRect(), m2::RectD(-2, -2, 2, 2), ()); } UNIT_TEST(AnyRect_TestIntersection) |