]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/187-commands-parser.t
Bump version for new CPAN upload, fix MANIFEST
[i3/i3] / testcases / t / 187-commands-parser.t
index e3481b0a14d47812a1fa0d732d083f82a0d87a98..5d3a0ff5660ff776007694bd72309235ccc9de12 100644 (file)
@@ -25,7 +25,7 @@ sub parser_calls {
 
     # TODO: use a timeout, so that we can error out if it doesn’t terminate
     # TODO: better way of passing arguments
-    my $stdout = qx(../test.commands_parser '$command' 2>&1 >&-);
+    my $stdout = qx(test.commands_parser '$command' 2>&1 >&-);
 
     # Filter out all debugging output.
     my @lines = split("\n", $stdout);
@@ -144,34 +144,36 @@ is(parser_calls("\nworkspace test"),
 ################################################################################
 
 is(parser_calls('unknown_literal'),
-   "ERROR: Expected one of these tokens: <end>, '[', " .
-   "'move', " .
-   "'exec', " .
-   "'exit', " .
-   "'restart', " .
-   "'reload', " .
-   "'shmlog', " .
-   "'debuglog', " .
-   "'border', " .
-   "'layout', " .
-   "'append_layout', " .
-   "'workspace', " .
-   "'focus', " .
-   "'kill', " .
-   "'open', " .
-   "'fullscreen', " .
-   "'sticky', " .
-   "'split', " .
-   "'floating', " .
-   "'mark', " .
-   "'unmark', " .
-   "'resize', " .
-   "'rename', " .
-   "'nop', " .
-   "'scratchpad', " .
-   "'title_format', " .
-   "'mode', " .
-   "'bar'\n" .
+   "ERROR: Expected one of these tokens: <end>, '[', '" . join("', '", qw(
+       move
+       exec
+       exit
+       restart
+       reload
+       shmlog
+       debuglog
+       border
+       layout
+       append_layout
+       workspace
+       focus
+       kill
+       open
+       fullscreen
+       sticky
+       split
+       floating
+       mark
+       unmark
+       resize
+       rename
+       nop
+       scratchpad
+       swap
+       title_format
+       mode
+       bar
+    )) . "'\n" .
    "ERROR: Your command: unknown_literal\n" .
    "ERROR:               ^^^^^^^^^^^^^^^",
    'error for unknown literal ok');