diff options
author | Juha Alanen <juha.alanen@mapbox.com> | 2019-10-02 15:49:31 +0300 |
---|---|---|
committer | Juha Alanen <19551460+jmalanen@users.noreply.github.com> | 2019-10-07 10:58:46 +0300 |
commit | e96c659906b0e992f50c54fc2b789c38aa18875d (patch) | |
tree | 5c8899371da064927d7163be3f0add5b6e1eb921 /expression-test/expression_test_runner.cpp | |
parent | 13801f1b80e21e128b851caa58a9f4bbd2421844 (diff) | |
download | qtlocation-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.cpp | 4 |
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; } |