diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2011-08-17 17:30:03 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:22:24 +0300 |
commit | bfa27582722e20bbc42fb2b9442f32622b5e71ce (patch) | |
tree | 330b5908dc4d63fc782a89d8d553de9a44a8ccc6 /geometry | |
parent | a67f4c612fdf415b0c53e33e286730a103015b48 (diff) |
code cleanup.
Diffstat (limited to 'geometry')
-rw-r--r-- | geometry/geometry_tests/screen_test.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/geometry/geometry_tests/screen_test.cpp b/geometry/geometry_tests/screen_test.cpp index 9a3b5b8ce5..b13520bffe 100644 --- a/geometry/geometry_tests/screen_test.cpp +++ b/geometry/geometry_tests/screen_test.cpp @@ -119,3 +119,16 @@ UNIT_TEST(ScreenBase_CalcTransform) TEST(fabs(dx - dx1) < 0.00001, (dx, dx1)); TEST(fabs(dy - dy1) < 0.00001, (dy, dy1)); } + +UNIT_TEST(ScreenBase_Rotate) +{ + ScreenBase s; + s.OnSize(0, 0, 100, 200); + s.SetFromRect(m2::RectD(0, 0, 100, 200)); + s.Rotate(math::pi / 4); + + m2::RectD pxRect = s.PixelRect(); + m2::RectD glbRect = s.GlobalRect(); + + TEST(pxRect == m2::RectD(0, 0, 100, 200), ()); +} |