diff options
author | w0rp <devw0rp@gmail.com> | 2018-03-23 12:17:49 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-03-23 12:17:54 +0000 |
commit | dbf530e87fde81397712a85ed87b6a15131afd4c (patch) | |
tree | 9ab411f54da1126eb6ecc68209152ca49dc9ad84 /test | |
parent | ec5750f57b6b98b46cf041f32bcc5d890f3e7e37 (diff) | |
download | ale-dbf530e87fde81397712a85ed87b6a15131afd4c.zip |
Fix #1373 - Fix a bug with Fish errors not being handled on Linux
Diffstat (limited to 'test')
-rw-r--r-- | test/handler/test_fish_handler.vader | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/handler/test_fish_handler.vader b/test/handler/test_fish_handler.vader index 567952e4..ad3a963c 100644 --- a/test/handler/test_fish_handler.vader +++ b/test/handler/test_fish_handler.vader @@ -37,3 +37,25 @@ Execute(The fish handler should handle basic warnings and syntax errors): \ "abbr --add p 'cd ~/Projects'", \ '^', \ ]) + +Execute(The fish handler should handle problems where the problem before before the line with the line number): + AssertEqual + \ [ + \ { + \ 'lnum': 2, + \ 'col': 23, + \ 'text': 'Unsupported use of ''||''. In fish, please use ''COMMAND; or COMMAND''.', + \ }, + \ { + \ 'lnum': 5, + \ 'col': 1, + \ 'text': 'wat', + \ }, + \ ], + \ ale_linters#fish#fish#Handle(bufnr(''), [ + \ 'Unsupported use of ''||''. In fish, please use ''COMMAND; or COMMAND''.', + \ '/tmp/vLz620o/258/test.fish (line 2): if set -q SSH_CLIENT || set -q SSH_TTY', + \ ' ^', + \ '/tmp/vLz620o/258/test.fish (line 5): wat', + \ ' ^', + \ ]) |