diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-11-20 13:54:42 +0200 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-12-02 17:11:49 +0200 |
commit | 72e9388a61fa1f346043da594d33d2881f7aa329 (patch) | |
tree | 202daaeca239b98e878c4369213febd5f0464030 /src | |
parent | 614000256b709ff9d566740534f68c4cb795e0f2 (diff) | |
download | qtlocation-mapboxgl-72e9388a61fa1f346043da594d33d2881f7aa329.tar.gz |
[core] Add unit tests for Formatted class
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/style/expression/formatted.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mbgl/style/expression/formatted.cpp b/src/mbgl/style/expression/formatted.cpp index 4069dd8a7c..9041bb3121 100644 --- a/src/mbgl/style/expression/formatted.cpp +++ b/src/mbgl/style/expression/formatted.cpp @@ -17,9 +17,8 @@ bool Formatted::operator==(const Formatted& other) const { for (std::size_t i = 0; i < sections.size(); i++) { const auto& thisSection = sections.at(i); const auto& otherSection = other.sections.at(i); - if (thisSection.text != otherSection.text || - thisSection.fontScale != otherSection.fontScale || - thisSection.fontStack != otherSection.fontStack || + if (thisSection.text != otherSection.text || thisSection.image != otherSection.image || + thisSection.fontScale != otherSection.fontScale || thisSection.fontStack != otherSection.fontStack || thisSection.textColor != otherSection.textColor) { return false; } |