commit | 117f7b559de23bd13d8c9a2bc92cf01f82a226dd | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Thu Jan 23 16:10:55 2020 +0100 |
committer | Václav Kubernát <kubernat@cesnet.cz> | Mon Jan 27 10:58:41 2020 +0100 |
tree | c5d4a2673e15d75e049289973327b398754da543 | |
parent | 395d92c50e2db2bd95ef7e36e4ae4f24d7cb9474 [diff] [blame] |
Fix leaf_data completion Completion for enums and identities was setting m_completionIterator even though it supplied no new completions. Issue: https://tree.taiga.io/project/jktjkt-netconf-cli/issue/150 Change-Id: I0f8252bc011b0a6418c1a616521027c784080b9b
diff --git a/tests/path_completion.cpp b/tests/path_completion.cpp index f84ae4f..832110d 100644 --- a/tests/path_completion.cpp +++ b/tests/path_completion.cpp
@@ -185,6 +185,13 @@ expectedContextLength = 6; } + SECTION("cd example:list[number=") + { + input = "cd example:list[number="; + expectedCompletions = {"number="}; + expectedContextLength = 7; + } + SECTION("cd example:list[number=12") { input = "cd example:list[number=12";