From 90a85c3f529e304a56e60533a13ce51ae1b67c02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ingo=20B=C3=BCrk?= Date: Sun, 27 Sep 2015 19:25:17 +0200 Subject: [PATCH] Break list of all commands into one line per command. This reduces the chances of merge conflicts when introducing or removing commands and therefore increases maintainability (albeit by only a little). --- testcases/t/187-commands-parser.t | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/testcases/t/187-commands-parser.t b/testcases/t/187-commands-parser.t index 8aff1f6d..4f555b29 100644 --- a/testcases/t/187-commands-parser.t +++ b/testcases/t/187-commands-parser.t @@ -144,7 +144,34 @@ is(parser_calls("\nworkspace test"), ################################################################################ is(parser_calls('unknown_literal'), - "ERROR: Expected one of these tokens: , '[', '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: , '[', " . + "'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'); -- 2.39.5