summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-01-11 11:22:10 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-01-11 12:43:15 -0800
commitb65b1e2c48f1c998a6b4a7fbeae36c8ef3fb7068 (patch)
tree19996657377a2e6a143d472a59ef75a5987dbfbc /test
parent4ce8d3e4e313fd436d2c8bc233d44ab90d23c64d (diff)
downloadqtlocation-mapboxgl-b65b1e2c48f1c998a6b4a7fbeae36c8ef3fb7068.tar.gz
[tests] Sidestep a gcc or gtest bug
https://github.com/google/googletest/issues/458 https://github.com/google/googletest/issues/322 Not seen in CI because of https://github.com/mapbox/mapbox-gl-native/blob/0ef52d7f7ceee670e8961e811364d215fde7e980/scripts/travis_setup.sh#L17-L22
Diffstat (limited to 'test')
-rw-r--r--test/style/functions.test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/style/functions.test.cpp b/test/style/functions.test.cpp
index 93447a8943..8553d13349 100644
--- a/test/style/functions.test.cpp
+++ b/test/style/functions.test.cpp
@@ -71,9 +71,9 @@ TEST(Function, Stops) {
EXPECT_EQ("string2", evaluate(discrete_0, 10));
Function<bool> discreteBool({{1, false}, {3, true}}, 1);
- EXPECT_EQ(false, evaluate(discreteBool, 0));
- EXPECT_EQ(false, evaluate(discreteBool, 1));
- EXPECT_EQ(false, evaluate(discreteBool, 2));
- EXPECT_EQ(true, evaluate(discreteBool, 3));
- EXPECT_EQ(true, evaluate(discreteBool, 4));
+ EXPECT_FALSE(evaluate(discreteBool, 0));
+ EXPECT_FALSE(evaluate(discreteBool, 1));
+ EXPECT_FALSE(evaluate(discreteBool, 2));
+ EXPECT_TRUE(evaluate(discreteBool, 3));
+ EXPECT_TRUE(evaluate(discreteBool, 4));
}