summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-04-24 21:38:12 +0100
committerw0rp <devw0rp@gmail.com>2017-04-24 21:38:12 +0100
commitb4c0335ebceb5ba360a71dd3d0f10ec1d5807a83 (patch)
tree69920b84d2ddf70b59dcd6204a11fbec9e3943d6 /test
parent99afe586b3a42adce580011079a83bbdaab675bd (diff)
downloadale-b4c0335ebceb5ba360a71dd3d0f10ec1d5807a83.zip
Handle Unix errors with no space after the colon
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_common_handlers.vader21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/handler/test_common_handlers.vader b/test/handler/test_common_handlers.vader
index b5e0c2d3..13bae8c4 100644
--- a/test/handler/test_common_handlers.vader
+++ b/test/handler/test_common_handlers.vader
@@ -89,6 +89,27 @@ Execute (HandleUnixFormatAsError should handle some example lines of output):
\ 'test.pug:1:1 ".b" is not a valid class name. Class names must begin with "-", "_" or a letter and can only contain "_", "-", a-z and 0-9.',
\ ])
+Execute (HandleUnixFormatAsError should handle lines with no space after the colon):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 27,
+ \ 'col': 0,
+ \ 'type': 'E',
+ \ 'text': 'foo',
+ \ },
+ \ {
+ \ 'lnum': 53,
+ \ 'col': 10,
+ \ 'type': 'E',
+ \ 'text': 'bar',
+ \ },
+ \ ],
+ \ ale#handlers#HandleUnixFormatAsError(42, [
+ \ 'some_file.xyz:27:foo',
+ \ 'some_file.xyz:53:10:bar',
+ \ ])
+
Execute (HandleUnixFormatAsWarning should handle some example lines of output):
AssertEqual
\ [