summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-06-27 21:39:36 +0100
committerGitHub <noreply@github.com>2018-06-27 21:39:36 +0100
commit980aa35566f1a5c66c7b9939bb07ec68deebccb2 (patch)
tree0639cd27bfd5a562de4a69e4e06b415be846ac63 /test/handler
parentb047271051d8ef448bf4bac120234205310b232a (diff)
parent4d935ff32a1ac8618c8afbf3104cf1864f633300 (diff)
downloadale-980aa35566f1a5c66c7b9939bb07ec68deebccb2.zip
Merge pull request #1675 from nicopauss/master
Improve pyrex cython linter.
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_pyrex_cython_handler.vader26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/handler/test_pyrex_cython_handler.vader b/test/handler/test_pyrex_cython_handler.vader
new file mode 100644
index 00000000..fd0f9a8b
--- /dev/null
+++ b/test/handler/test_pyrex_cython_handler.vader
@@ -0,0 +1,26 @@
+Before:
+ runtime ale_linters/pyrex/cython.vim
+
+After:
+ call ale#linter#Reset()
+
+Execute(The cython handler should handle warnings and errors):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 42,
+ \ 'col': 7,
+ \ 'text': 'some warning',
+ \ 'type': 'W',
+ \ },
+ \ {
+ \ 'lnum': 777,
+ \ 'col': 21,
+ \ 'text': 'some error',
+ \ 'type': 'E',
+ \ },
+ \ ],
+ \ ale_linters#pyrex#cython#Handle(347, [
+ \ 'warning: file:42:7: some warning',
+ \ 'file:777:21: some error',
+ \ ])