summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorjordanandree <jordanandree@gmail.com>2017-04-13 21:19:53 -0400
committerjordanandree <jordanandree@gmail.com>2017-04-13 21:33:36 -0400
commitabdfaaf84fad4cc745eb601545af669b1833c0a9 (patch)
tree521c88b738eca4c7077e7669fa8165e4a4344fad /test/handler
parent349b31104a500e1e0376ec0b2022d8c478d0bf24 (diff)
downloadale-abdfaaf84fad4cc745eb601545af669b1833c0a9.zip
add crystal lint
- invokes via `crystal build` command without codegen - adds vader tests
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()