diff options
author | Molly Lloyd <molly@mapbox.com> | 2018-12-11 16:38:49 -0800 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-03-05 14:04:52 +0200 |
commit | c33516911f96556cf7c1fb49a3b49b309108f22d (patch) | |
tree | 79ff5b0bd9e43e1909dd6c50fc5e82af97a5da6b /test | |
parent | 05026b704adcbe97c923989b3e2e46feb4fdc7ee (diff) | |
download | qtlocation-mapboxgl-c33516911f96556cf7c1fb49a3b49b309108f22d.tar.gz |
remove unused dem memory
Diffstat (limited to 'test')
-rw-r--r-- | test/geometry/dem_data.test.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/geometry/dem_data.test.cpp b/test/geometry/dem_data.test.cpp index 3848f028f1..bf362820a0 100644 --- a/test/geometry/dem_data.test.cpp +++ b/test/geometry/dem_data.test.cpp @@ -20,9 +20,8 @@ TEST(DEMData, ConstructorMapbox) { DEMData demdata(image, Tileset::DEMEncoding::Mapbox); EXPECT_EQ(demdata.dim, 16); - EXPECT_EQ(demdata.border, 8); - EXPECT_EQ(demdata.stride, 32); - EXPECT_EQ(demdata.getImage()->bytes(), size_t(32*32*4)); + EXPECT_EQ(demdata.stride, 18); + EXPECT_EQ(demdata.getImage()->bytes(), size_t(18*18*4)); }; TEST(DEMData, ConstructorTerrarium) { @@ -30,9 +29,8 @@ TEST(DEMData, ConstructorTerrarium) { DEMData demdata(image, Tileset::DEMEncoding::Terrarium); EXPECT_EQ(demdata.dim, 16); - EXPECT_EQ(demdata.border, 8); - EXPECT_EQ(demdata.stride, 32); - EXPECT_EQ(demdata.getImage()->bytes(), size_t(32*32*4)); + EXPECT_EQ(demdata.stride, 18); + EXPECT_EQ(demdata.getImage()->bytes(), size_t(18*18*4)); }; TEST(DEMData, RoundTrip) { |