diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2018-06-29 12:52:08 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2018-07-13 11:53:27 -0700 |
commit | 8696db551b82601971676ab892afc2a479342f77 (patch) | |
tree | 3d856db5fc934256962a75808ec1a821c457aa02 /test/style/function/exponential_stops.test.cpp | |
parent | 1031e7c8bf936f05dd86e4570d4e86db5582ef16 (diff) | |
download | qtlocation-mapboxgl-upstream/function-conversion.tar.gz |
[core] Convert legacy functions directly to expressionsupstream/function-conversion
Diffstat (limited to 'test/style/function/exponential_stops.test.cpp')
-rw-r--r-- | test/style/function/exponential_stops.test.cpp | 20 |
1 files changed, 0 insertions, 20 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>())))); -} |