]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/187-commands-parser.t
Split list of command / config directives in tests. (#2345)
[i3/i3] / testcases / t / 187-commands-parser.t
index e3481b0a14d47812a1fa0d732d083f82a0d87a98..73c443f996b9e43a7620603e46cf20fe9b435110 100644 (file)
@@ -144,34 +144,35 @@ 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
+       title_format
+       mode
+       bar
+    )) . "'\n" .
    "ERROR: Your command: unknown_literal\n" .
    "ERROR:               ^^^^^^^^^^^^^^^",
    'error for unknown literal ok');