summaryrefslogtreecommitdiff
path: root/test/test_loclist_corrections.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-13 23:34:00 +0000
committerw0rp <devw0rp@gmail.com>2017-11-13 23:34:00 +0000
commitfea708cff33343dbeff496ba2c25ed2fe7268fed (patch)
treef59ea869799d45c7751ba83816f69eafa13cea9f /test/test_loclist_corrections.vader
parent8a3a2da87ed446a7161538e08ce1e961f3dc393c (diff)
downloadale-fea708cff33343dbeff496ba2c25ed2fe7268fed.zip
#852 Pass on error codes in the loclist corrections
Diffstat (limited to 'test/test_loclist_corrections.vader')
-rw-r--r--test/test_loclist_corrections.vader21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/test_loclist_corrections.vader b/test/test_loclist_corrections.vader
index e6844d8e..6224d608 100644
--- a/test/test_loclist_corrections.vader
+++ b/test/test_loclist_corrections.vader
@@ -327,3 +327,24 @@ Execute(FixLocList should interpret temporary filenames as being the current buf
\ {'text': 'a', 'lnum': 3, 'filename': b:temp_name},
\ ],
\ )
+
+Execute(The error code should be passed on):
+ AssertEqual
+ \ [
+ \ {
+ \ 'text': 'a',
+ \ 'lnum': 10,
+ \ 'col': 0,
+ \ 'bufnr': bufnr('%'),
+ \ 'vcol': 0,
+ \ 'type': 'E',
+ \ 'nr': -1,
+ \ 'linter_name': 'foobar',
+ \ 'code': 'some-code'
+ \ },
+ \],
+ \ ale#engine#FixLocList(
+ \ bufnr('%'),
+ \ 'foobar',
+ \ [{'text': 'a', 'lnum': 11, 'code': 'some-code'}],
+ \ )