summaryrefslogtreecommitdiff
path: root/test/handler/test_pyrex_cython_handler.vader
diff options
context:
space:
mode:
authorNicolas Pauss <nicolas.pauss@gmail.com>2018-06-25 17:25:38 +0200
committerNicolas Pauss <nicolas.pauss@intersec.com>2018-06-25 17:33:53 +0200
commitd05936a48919081cb274e412549a050e70207153 (patch)
treeeb6ee4527d9fcd6bc8eacc8a523757dde5411454 /test/handler/test_pyrex_cython_handler.vader
parentbedd30ee11953bde13856c32a1b8b7a17ef5916a (diff)
downloadale-d05936a48919081cb274e412549a050e70207153.zip
Handle cython warning with custom handle and remove '--warning-errors'.
Add a custom handler to support cython warning format. Remove '--warning-errors' to keep previous behaviour.
Diffstat (limited to 'test/handler/test_pyrex_cython_handler.vader')
-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',
+ \ ])