Cleanup formatting
Wew, that's a lot of stuff. But I thought it makes sense after the
sysrepo migration.
Change-Id: If363d2ce1b11106113a9f0c37a3bcd59a940bd0b
diff --git a/tests/leaf_editing.cpp b/tests/leaf_editing.cpp
index 7b203f4..c1639b2 100644
--- a/tests/leaf_editing.cpp
+++ b/tests/leaf_editing.cpp
@@ -123,7 +123,7 @@
SECTION("set mod:list[number=1]/leafInList \"another_data\"")
{
input = "set mod:list[number=1]/leafInList \"another_data\"";
- auto keys = ListInstance {
+ auto keys = ListInstance{
{"number", int32_t{1}}};
expected.m_path.m_nodes.emplace_back(module_{"mod"}, listElement_("list", keys));
expected.m_path.m_nodes.emplace_back(leaf_("leafInList"));
@@ -464,22 +464,27 @@
{
input = "set mod:flags ";
decltype(bits_::m_bits) bits;
- SECTION("<nothing>") {
+ SECTION("<nothing>")
+ {
bits = {};
}
- SECTION("carry") {
+ SECTION("carry")
+ {
input += "carry";
bits = {"carry"};
}
- SECTION("sign") {
+ SECTION("sign")
+ {
input += "sign";
bits = {"sign"};
}
- SECTION("carry sign") {
+ SECTION("carry sign")
+ {
input += "carry sign";
bits = {"carry", "sign"};
}
- SECTION("sign carry") {
+ SECTION("sign carry")
+ {
input += "sign carry";
bits = {"sign", "carry"};
}
@@ -585,11 +590,17 @@
SECTION("wrong base64 strings")
{
SECTION("invalid character")
+ {
input = "set mod:leafBinary dbahj-";
+ }
SECTION("equal sign in the middle")
+ {
input = "set mod:leafBinary db=ahj";
+ }
SECTION("enclosing in quotes")
+ {
input = "set mod:leafBinary 'dbahj'";
+ }
}
SECTION("non-existing identity")