diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-04-04 07:35:26 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-04-06 09:22:51 -0700 |
commit | 16a2839e23d42d4640ef028d62dc01322a0d2e5a (patch) | |
tree | b8b8ba6e7c9f2e91cc3ec230bb9420e3827f3c27 /test/util/projection.test.cpp | |
parent | a261f7ff532584b3bbbe4ddef2d0ff96a1ee65a5 (diff) | |
download | qtlocation-mapboxgl-16a2839e23d42d4640ef028d62dc01322a0d2e5a.tar.gz |
[all] Make LatLng coordinates read-only
Diffstat (limited to 'test/util/projection.test.cpp')
-rw-r--r-- | test/util/projection.test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/util/projection.test.cpp b/test/util/projection.test.cpp index 260d12edfe..b0fa0bd060 100644 --- a/test/util/projection.test.cpp +++ b/test/util/projection.test.cpp @@ -53,11 +53,11 @@ TEST(Projection, ProjectedMeters) { projectedMeters = ProjectedMeters { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::lowest() }; latLng = Projection::latLngForProjectedMeters(projectedMeters); - EXPECT_EQ(latLng.latitude, -util::LATITUDE_MAX); - EXPECT_EQ(latLng.longitude, -util::LONGITUDE_MAX); + EXPECT_EQ(latLng.latitude(), -util::LATITUDE_MAX); + EXPECT_EQ(latLng.longitude(), -util::LONGITUDE_MAX); projectedMeters = ProjectedMeters { std::numeric_limits<double>::max(), std::numeric_limits<double>::max() }; latLng = Projection::latLngForProjectedMeters(projectedMeters); - EXPECT_EQ(latLng.latitude, util::LATITUDE_MAX); - EXPECT_EQ(latLng.longitude, util::LONGITUDE_MAX); + EXPECT_EQ(latLng.latitude(), util::LATITUDE_MAX); + EXPECT_EQ(latLng.longitude(), util::LONGITUDE_MAX); } |