diff options
Diffstat (limited to 'test/map')
-rw-r--r-- | test/map/transform.test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/map/transform.test.cpp b/test/map/transform.test.cpp index 441794886d..33d325dfb2 100644 --- a/test/map/transform.test.cpp +++ b/test/map/transform.test.cpp @@ -583,7 +583,7 @@ TEST(Transform, LatLngBounds) { transform.jumpTo(CameraOptions().withCenter(LatLng()).withZoom(transform.getState().getMaxZoom())); // Default bounds. - ASSERT_EQ(transform.getState().getLatLngBounds(), optional<LatLngBounds> {}); + ASSERT_EQ(transform.getState().getLatLngBounds(), LatLngBounds::unbounded()); ASSERT_EQ(transform.getLatLng(), nullIsland); // Invalid bounds. @@ -591,7 +591,7 @@ TEST(Transform, LatLngBounds) { transform.setLatLngBounds(LatLngBounds::empty()); ASSERT_TRUE(false) << "Should throw"; } catch (...) { - ASSERT_EQ(transform.getState().getLatLngBounds(), optional<LatLngBounds> {}); + ASSERT_EQ(transform.getState().getLatLngBounds(), LatLngBounds::unbounded()); } transform.jumpTo(CameraOptions().withCenter(sanFrancisco)); |