diff --git a/src/test/java/de/pabulaner/jcmd/core/ParserTest.java b/src/test/java/de/pabulaner/jcmd/core/ParserTest.java index f49d4e8..f2d4268 100644 --- a/src/test/java/de/pabulaner/jcmd/core/ParserTest.java +++ b/src/test/java/de/pabulaner/jcmd/core/ParserTest.java @@ -18,7 +18,8 @@ class ParserTest { testInput(parser, "ls -la ./what", "ls", List.of("l", "a"), List.of("./what")); testInput(parser, "rm -r /bin /opt", "rm", List.of("r"), List.of("/bin", "/opt")); testInput(parser, "cd .", "cd", List.of(), List.of(".")); - testInput(parser, "mkdir .", "cd", List.of(), List.of(".")); + testInput(parser, "mkdir .", "mkdir", List.of(), List.of(".")); + testInput(parser, "super -abc -de -f super nice danke paul", "super", List.of("a", "b", "c", "d", "e", "f"), List.of("super", "nice", "danke", "paul")); } private void testInput(Parser parser, String input, String expectedCommand, List expectedFlags, List expectedArgs) {