summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2018-06-29 12:52:08 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-07-13 13:37:27 -0700
commita6727921fc1608d341c086cd70341e6df5e79a2b (patch)
tree3d856db5fc934256962a75808ec1a821c457aa02 /test
parentbea8f8d177905bfb74e8b5c2d5e7750b3d6bad8e (diff)
downloadqtlocation-mapboxgl-a6727921fc1608d341c086cd70341e6df5e79a2b.tar.gz
[core] Convert legacy functions directly to expressions
Diffstat (limited to 'test')
-rw-r--r--test/style/function/exponential_stops.test.cpp20
-rw-r--r--test/style/function/interval_stops.test.cpp20
2 files changed, 0 insertions, 40 deletions
diff --git a/test/style/function/exponential_stops.test.cpp b/test/style/function/exponential_stops.test.cpp
deleted file mode 100644
index 81438ec952..0000000000
--- a/test/style/function/exponential_stops.test.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <mbgl/test/util.hpp>
-
-#include <mbgl/style/function/exponential_stops.hpp>
-
-using namespace mbgl;
-using namespace mbgl::style;
-
-TEST(ExponentialStops, Empty) {
- ExponentialStops<float> stops;
- EXPECT_FALSE(bool(stops.evaluate(0)));
-}
-
-TEST(ExponentialStops, NonNumericInput) {
- ExponentialStops<float> stops(std::map<float, float> {{0.0f, 0.0f}});
- EXPECT_FALSE(bool(stops.evaluate(Value(NullValue()))));
- EXPECT_FALSE(bool(stops.evaluate(Value(false))));
- EXPECT_FALSE(bool(stops.evaluate(Value(std::string()))));
- EXPECT_FALSE(bool(stops.evaluate(Value(std::vector<Value>()))));
- EXPECT_FALSE(bool(stops.evaluate(Value(std::unordered_map<std::string, Value>()))));
-}
diff --git a/test/style/function/interval_stops.test.cpp b/test/style/function/interval_stops.test.cpp
deleted file mode 100644
index 8a5e74b8b6..0000000000
--- a/test/style/function/interval_stops.test.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <mbgl/test/util.hpp>
-
-#include <mbgl/style/function/interval_stops.hpp>
-
-using namespace mbgl;
-using namespace mbgl::style;
-
-TEST(IntervalStops, Empty) {
- IntervalStops<float> stops;
- EXPECT_FALSE(bool(stops.evaluate(0)));
-}
-
-TEST(IntervalStops, NonNumericInput) {
- IntervalStops<float> stops(std::map<float, float> {{0.0f, 0.0f}});
- EXPECT_FALSE(bool(stops.evaluate(Value(NullValue()))));
- EXPECT_FALSE(bool(stops.evaluate(Value(false))));
- EXPECT_FALSE(bool(stops.evaluate(Value(std::string()))));
- EXPECT_FALSE(bool(stops.evaluate(Value(std::vector<Value>()))));
- EXPECT_FALSE(bool(stops.evaluate(Value(std::unordered_map<std::string, Value>()))));
-}