Change syntax for multi-key list indexing
List instances are now dereferenced by listing each key-value in
separate brackets. Value can be enclosed either in single quotes or in
double quotes.
Change-Id: Iad72b1002d4655249ecd7bfc7109814b45c7b16b
diff --git a/tests/presence_containers.cpp b/tests/presence_containers.cpp
index 9683daf..20e1d48 100644
--- a/tests/presence_containers.cpp
+++ b/tests/presence_containers.cpp
@@ -49,9 +49,9 @@
expectedPath.m_nodes = {{{module_{"mod"}}, container_("a")}, {container_("a2")}, {container_("a3")}};
}
- SECTION("mod:list[quote=lol]/contInList")
+ SECTION("mod:list[quote='lol']/contInList")
{
- input = "mod:list[quote=lol]/contInList";
+ input = "mod:list[quote='lol']/contInList";
auto keys = std::map<std::string, std::string>{
{"quote", "lol"}};
expectedPath.m_nodes = {{{module_{"mod"}}, listElement_("list", keys)}, {container_("contInList")}};
@@ -83,9 +83,9 @@
input = "a/a2";
}
- SECTION("list[quote=lol]")
+ SECTION("list[quote='lol']")
{
- input = "list[quote=lol]";
+ input = "list[quote='lol']";
}
REQUIRE_THROWS(parser.parseCommand("create " + input, errorStream));