Disallow space between list suffix and list prefix

This is also needed for the move command: random parsers
eating random spaces was messing with the parser. I want
spaces to be eaten by space_separator.

Change-Id: I4e515168888e054ccd7708d722730890bf4ab2de
diff --git a/tests/cd.cpp b/tests/cd.cpp
index 32d7230..ec9133a 100644
--- a/tests/cd.cpp
+++ b/tests/cd.cpp
@@ -294,6 +294,12 @@
                 input = "cd example:twoKeyList[number=4][name=abcd]";
             }
         }
+
+        SECTION("no space between list prefix and suffix")
+        {
+            input = "cd example:list  [number=10]";
+        }
+
         REQUIRE_THROWS_AS(parser.parseCommand(input, errorStream), InvalidCommandException);
     }
 }