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";