summaryrefslogtreecommitdiff
path: root/test/handler/test_crystal_handler.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/handler/test_crystal_handler.vader')
-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()