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 <juha.alanen@mapbox.com>2019-10-07 16:37:56 +0300
commit4ec55f764429f4bb513c9d7c0048a168d3631c13 (patch)
tree9e908bfb424dacc8a8954350c2f500eb53699665 /expression-test/test_runner_common.hpp
parentbd283fc1be2f90ce02b37617411a0ce4246d898e (diff)
downloadqtlocation-mapboxgl-4ec55f764429f4bb513c9d7c0048a168d3631c13.tar.gz
[tests] Share common code between test runnersupstream/jmalanen-test-runner
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);