diff options
author | jordanandree <jordanandree@gmail.com> | 2017-04-13 21:19:53 -0400 |
---|---|---|
committer | jordanandree <jordanandree@gmail.com> | 2017-04-13 21:33:36 -0400 |
commit | abdfaaf84fad4cc745eb601545af669b1833c0a9 (patch) | |
tree | 521c88b738eca4c7077e7669fa8165e4a4344fad /test | |
parent | 349b31104a500e1e0376ec0b2022d8c478d0bf24 (diff) | |
download | ale-abdfaaf84fad4cc745eb601545af669b1833c0a9.zip |
add crystal lint
- invokes via `crystal build` command without codegen
- adds vader tests
Diffstat (limited to 'test')
-rw-r--r-- | test/handler/test_crystal_handler.vader | 18 |
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() |