summaryrefslogtreecommitdiff
path: root/test/yaml-parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/yaml-parser.cpp')
-rw-r--r--test/yaml-parser.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/yaml-parser.cpp b/test/yaml-parser.cpp
index 78233176..9fd27866 100644
--- a/test/yaml-parser.cpp
+++ b/test/yaml-parser.cpp
@@ -518,6 +518,12 @@ protected:
return TestFail;
}
+ const auto &values = firstElement.getList<uint16_t>();
+ if (!values || values->size() != 2 || (*values)[0] != 1 || (*values)[1] != 2) {
+ cerr << "getList() failed to return correct vector" << std::endl;
+ return TestFail;
+ }
+
auto &secondElement = level2Obj[1];
if (!secondElement.isDictionary() ||
!secondElement.contains("one") ||