summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-04-15 11:34:20 +0100
committerGitHub <noreply@github.com>2017-04-15 11:34:20 +0100
commitd5ccb1a7a16a325d88f01f8a1de619ef340e1885 (patch)
treef166feac12036b4f3d05c0d0ead052dd7d627eea /test/handler
parent8351bdbc066ed7f56bf78f4286565652e4a207ed (diff)
parentabdfaaf84fad4cc745eb601545af669b1833c0a9 (diff)
downloadale-d5ccb1a7a16a325d88f01f8a1de619ef340e1885.zip
Merge pull request #474 from jordanandree/add-crystal-lint
Add linter for Crystal lang
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_crystal_handler.vader18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/handler/test_crystal_handler.vader b/test/handler/test_crystal_handler.vader
new file mode 100644
index 00000000..bdc44644
--- /dev/null
+++ b/test/handler/test_crystal_handler.vader
@@ -0,0 +1,18 @@
+Execute(The crystal handler should parse lines correctly and add the column if it can):
+ runtime ale_linters/crystal/crystal.vim
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 2,
+ \ 'bufnr': 255,
+ \ 'col': 1,
+ \ 'type': 'E',
+ \ 'text': 'unexpected token: EOF'
+ \ }
+ \ ],
+ \ ale_linters#crystal#crystal#Handle(255, [
+ \ '[{"file":"/tmp/test.cr","line":2,"column":1,"size":null,"message":"unexpected token: EOF"}]'
+ \ ])
+
+After:
+ call ale#linter#Reset()