summaryrefslogtreecommitdiff
path: root/expression-test/expression_test_runner.cpp
diff options
context:
space:
mode:
authorJuha Alanen <juha.alanen@mapbox.com>2019-10-02 15:49:31 +0300
committerJuha Alanen <19551460+jmalanen@users.noreply.github.com>2019-10-07 10:58:46 +0300
commite96c659906b0e992f50c54fc2b789c38aa18875d (patch)
tree5c8899371da064927d7163be3f0add5b6e1eb921 /expression-test/expression_test_runner.cpp
parent13801f1b80e21e128b851caa58a9f4bbd2421844 (diff)
downloadqtlocation-mapboxgl-e96c659906b0e992f50c54fc2b789c38aa18875d.tar.gz
[expression-test] fix result diffing
Diffstat (limited to 'expression-test/expression_test_runner.cpp')
-rw-r--r--expression-test/expression_test_runner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/expression-test/expression_test_runner.cpp b/expression-test/expression_test_runner.cpp
index 695d129049..e52c9b1186 100644
--- a/expression-test/expression_test_runner.cpp
+++ b/expression-test/expression_test_runner.cpp
@@ -136,12 +136,12 @@ std::string simpleDiff(const Value& result, const Value& expected) {
for (std::size_t i = 0; i < maxLength; ++i) {
if (resultTokens.size() <= i) {
- flush(expectedTokens, i, diff, "+"s);
+ flush(expectedTokens, i, diff, "-"s);
break;
}
if (expectedTokens.size() <= i) {
- flush(expectedTokens, i, diff, "-"s);
+ flush(resultTokens, i, diff, "+"s);
break;
}