diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-10-22 04:20:35 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-10-22 04:20:51 -0700 |
commit | c6e4cf2f80216c7139b6587dcd6d919080aef20d (patch) | |
tree | 0e8c5b6feee68e8ed0c216755a2a6a8d667b8e17 | |
parent | f701fb340fb01e0561ca77559473bc4aa09dc6d5 (diff) | |
download | qtlocation-mapboxgl-c6e4cf2f80216c7139b6587dcd6d919080aef20d.tar.gz |
use ASSERT_FALSE for boolean comparisons
-rw-r--r-- | test/enums.cpp | 4 | ||||
-rw-r--r-- | test/style_parser.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/enums.cpp b/test/enums.cpp index dce20ca592..67ff0aa7e8 100644 --- a/test/enums.cpp +++ b/test/enums.cpp @@ -31,7 +31,7 @@ TEST(Enums, StyleLayerType) { ASSERT_EQ(StyleLayerTypeClass(StyleLayerType::Raster), StyleLayerTypeClass(StyleLayerType::Raster)); ASSERT_EQ(StyleLayerTypeClass(StyleLayerType::Background), StyleLayerTypeClass(StyleLayerType::Background)); - ASSERT_EQ(false, StyleLayerTypeClass("").valid()); - ASSERT_EQ(false, StyleLayerTypeClass("Backgrund").valid()); + ASSERT_FALSE(StyleLayerTypeClass("").valid()); + ASSERT_FALSE(StyleLayerTypeClass("Backgrund").valid()); } diff --git a/test/style_parser.cpp b/test/style_parser.cpp index d530fe1f8b..fe237b7888 100644 --- a/test/style_parser.cpp +++ b/test/style_parser.cpp @@ -34,8 +34,8 @@ TEST_P(StyleParserTest, ParseStyle) { // Parse settings. rapidjson::Document doc; doc.Parse<0>((const char *const)info.c_str()); - ASSERT_EQ(false, doc.HasParseError()); - ASSERT_EQ(true, doc.IsObject()); + ASSERT_FALSE(doc.HasParseError()); + ASSERT_TRUE(doc.IsObject()); std::ifstream stylefile(style_path); ASSERT_TRUE(stylefile.good()); |