summaryrefslogtreecommitdiff
path: root/expression-test/test_runner_common.hpp
diff options
context:
space:
mode:
authorJuha Alanen <juha.alanen@mapbox.com>2019-10-07 12:44:16 +0300
committerJuha Alanen <19551460+jmalanen@users.noreply.github.com>2019-10-08 15:33:30 +0300
commit4eaaa9046ed4f2c45a9febdb8f2f15a8f63f73d4 (patch)
treef5b928a3eb934ea44c2183ad6514242e03334b88 /expression-test/test_runner_common.hpp
parent9be5ccb2104a7f41dc8b1f7c7d754c6aa5d3fd53 (diff)
downloadqtlocation-mapboxgl-4eaaa9046ed4f2c45a9febdb8f2f15a8f63f73d4.tar.gz
[tests] Share common code between test runners
Diffstat (limited to 'expression-test/test_runner_common.hpp')
-rw-r--r--expression-test/test_runner_common.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/expression-test/test_runner_common.hpp b/expression-test/test_runner_common.hpp
new file mode 100644
index 0000000000..b30d1a145c
--- /dev/null
+++ b/expression-test/test_runner_common.hpp
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <mbgl/util/feature.hpp>
+
+#include <string>
+#include <vector>
+
+using namespace mbgl;
+
+Value stripPrecision(const Value& value);
+std::vector<std::string> tokenize(std::string str);
+bool deepEqual(const Value& a, const Value& b);
+bool deepEqual(const optional<Value>& a, const optional<Value>& b);