summaryrefslogtreecommitdiff
path: root/test/tile/vector_tile.test.cpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2018-11-30 14:31:37 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2019-01-14 10:45:49 -0400
commitf31386385952f42e0468c7d7a0ab0a066f0bf803 (patch)
tree74432eaa3544daa5f749a315399249c1af30e718 /test/tile/vector_tile.test.cpp
parenta4f2fe4209ef6961662fb53ee5c29cafacd2a303 (diff)
downloadqtlocation-mapboxgl-upstream/geometrytilefeature-getvalue-no-optional.tar.gz
[core] Remove optional from GeometryTileFeature::getValue()upstream/geometrytilefeature-getvalue-no-optional
Diffstat (limited to 'test/tile/vector_tile.test.cpp')
-rw-r--r--test/tile/vector_tile.test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tile/vector_tile.test.cpp b/test/tile/vector_tile.test.cpp
index ed3eda7863..07110fdd7f 100644
--- a/test/tile/vector_tile.test.cpp
+++ b/test/tile/vector_tile.test.cpp
@@ -103,7 +103,7 @@ TEST(VectorTileData, ParseResults) {
std::unordered_map<std::string, Value> properties = feature->getProperties();
ASSERT_EQ(properties.size(), 3u);
- ASSERT_EQ(properties.at("disputed"), *feature->getValue("disputed"));
+ ASSERT_EQ(properties.at("disputed"), feature->getValue("disputed"));
- ASSERT_EQ(feature->getValue("invalid"), nullopt);
-} \ No newline at end of file
+ ASSERT_EQ(feature->getValue("invalid"), NullValue());
+}