summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authoraurieh <me@aurieh.me>2017-10-25 00:39:54 +0300
committeraurieh <me@aurieh.me>2017-10-25 00:39:54 +0300
commitb401772d23267f16070092d50c944872f74adff0 (patch)
tree947e294e9d6067e98c82ee3e43e3d606608d58d6 /test/handler
parentf0a0aef33d0f023f60605823fcf47778726ce6e1 (diff)
downloadale-b401772d23267f16070092d50c944872f74adff0.zip
Add Vader tests
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_checkmake_handler.vader19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/handler/test_checkmake_handler.vader b/test/handler/test_checkmake_handler.vader
new file mode 100644
index 00000000..61fe141a
--- /dev/null
+++ b/test/handler/test_checkmake_handler.vader
@@ -0,0 +1,19 @@
+Execute(Parsing checkmake errors should work):
+ runtime ale_linters/make/checkmake.vim
+ silent file Makefile
+
+ AssertEqual
+ \ [
+ \ {
+ \ 'bufnr': 42,
+ \ 'lnum': 1,
+ \ 'type': 'E',
+ \ 'text': 'woops: an error has occurred',
+ \ }
+ \ ],
+ \ ale_linters#make#checkmake#Handle(42, [
+ \ 'This shouldnt match',
+ \ '1:woops:an error has occurred',
+ \ ])
+After:
+ call ale#linter#Reset()