diff options
Diffstat (limited to 'test/map')
-rw-r--r-- | test/map/map.test.cpp | 2 | ||||
-rw-r--r-- | test/map/transform.test.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/map/map.test.cpp b/test/map/map.test.cpp index 8eedeb3c01..fa331288c5 100644 --- a/test/map/map.test.cpp +++ b/test/map/map.test.cpp @@ -237,7 +237,7 @@ TEST(Map, StyleLoadedSignal) { }); map.setStyleJSON(util::read_file("test/fixtures/api/empty.json")); EXPECT_TRUE(emitted); - + // But not when the style couldn't be parsed emitted = false; map.setStyleJSON("invalid"); diff --git a/test/map/transform.test.cpp b/test/map/transform.test.cpp index d5b98ac109..9125b6ef1d 100644 --- a/test/map/transform.test.cpp +++ b/test/map/transform.test.cpp @@ -343,12 +343,12 @@ TEST(Transform, Padding) { ASSERT_DOUBLE_EQ(10, trueCenter.latitude); ASSERT_DOUBLE_EQ(-100, trueCenter.longitude); ASSERT_DOUBLE_EQ(10, transform.getZoom()); - + const LatLng manualShiftedCenter = transform.getState().screenCoordinateToLatLng({ 1000.0 / 2.0, 1000.0 / 4.0, }); - + EdgeInsets padding; padding.top = 0; @@ -359,7 +359,7 @@ TEST(Transform, Padding) { padding.top = 1000.0 / 2.0; ASSERT_TRUE(bool(padding)); - + const LatLng shiftedCenter = transform.getLatLng(padding); ASSERT_NE(trueCenter.latitude, shiftedCenter.latitude); ASSERT_NEAR(trueCenter.longitude, shiftedCenter.longitude, 1e-9); |