diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-11-30 14:31:37 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-01-14 10:45:49 -0400 |
commit | f31386385952f42e0468c7d7a0ab0a066f0bf803 (patch) | |
tree | 74432eaa3544daa5f749a315399249c1af30e718 /test/tile/vector_tile.test.cpp | |
parent | a4f2fe4209ef6961662fb53ee5c29cafacd2a303 (diff) | |
download | qtlocation-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.cpp | 6 |
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()); +} |