summaryrefslogtreecommitdiff
path: root/tests/auto/yaml/tst_yaml.cpp
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2023-03-17 17:37:28 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-03-21 17:40:07 +0000
commitaf6151f2f34fb44ef4631d9c4de874b7dd13d7c6 (patch)
treec4bd6a40db6d91030a1603ee6e8bb161a89651ec /tests/auto/yaml/tst_yaml.cpp
parentab249a81bbf4b32882ee5c2289191f1f0d106f13 (diff)
downloadqtapplicationmanager-6.4.tar.gz
yaml: missing values are actually null/~, not empty strings6.4
Change-Id: I6ca98e219bf4c3de9a1eaaae5ddeb7e7cfa27107 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 0ae6d0a3637075fe8005361177eae3142eee0a77) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/yaml/tst_yaml.cpp')
-rw-r--r--tests/auto/yaml/tst_yaml.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/yaml/tst_yaml.cpp b/tests/auto/yaml/tst_yaml.cpp
index 344f0d15..c9f3394c 100644
--- a/tests/auto/yaml/tst_yaml.cpp
+++ b/tests/auto/yaml/tst_yaml.cpp
@@ -52,6 +52,7 @@ void tst_Yaml::parser()
{ "bool-no", false },
{ "null-literal", vnull },
{ "null-tilde", vnull },
+ { "null-empty", vnull },
{ "string-unquoted", QVariant::fromValue<QString>(qSL("unquoted")) },
{ "string-singlequoted", QVariant::fromValue<QString>(qSL("singlequoted")) },
{ "string-doublequoted", QVariant::fromValue<QString>(qSL("doublequoted")) },
@@ -176,6 +177,7 @@ static const QVariantMap testMainDoc = {
{ qSL("bool-no"), false },
{ qSL("null-literal"), vnull },
{ qSL("null-tilde"), vnull },
+ { qSL("null-empty"), vnull },
{ qSL("string-unquoted"), qSL("unquoted") },
{ qSL("string-singlequoted"), qSL("singlequoted") },
{ qSL("string-doublequoted"), qSL("doublequoted") },