diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-31 10:27:29 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-31 10:27:35 +0100 |
commit | fd49f7df90f8454df2f5d9fbc07b065807b1bb4b (patch) | |
tree | 95bff1417d176a3b3669c0434610a9efd109e6fd /test | |
parent | e72dc1acd58b6de742ca3fbc69a197549e7c18dd (diff) | |
download | ale-fd49f7df90f8454df2f5d9fbc07b065807b1bb4b.zip |
#604 Change match_id to match_id_list, for future highlights spanning more than 8 lines
Diffstat (limited to 'test')
-rw-r--r-- | test/test_highlight_placement.vader | 6 | ||||
-rw-r--r-- | test/test_linting_updates_loclist.vader | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/test_highlight_placement.vader b/test/test_highlight_placement.vader index 454f6209..a728fce0 100644 --- a/test/test_highlight_placement.vader +++ b/test/test_highlight_placement.vader @@ -55,15 +55,15 @@ Execute(Highlights should be set when a linter runs): \ ], \ getmatches() - AssertEqual [4, 5, 6], map(copy(g:ale_buffer_info[bufnr('')].loclist), 'v:val.match_id') + AssertEqual [[4], [5], [6]], map(copy(g:ale_buffer_info[bufnr('')].loclist), 'v:val.match_id_list') Execute(Existing highlights should be kept): call matchaddpos('ALEError', [[1, 2, 1]], 10, 347) call matchaddpos('ALEWarning', [[2, 2, 1]], 10, 348) call ale#highlight#SetHighlights(bufnr('%'), [ - \ {'bufnr': bufnr('%'), 'match_id': 347, 'type': 'E', 'lnum': 1, 'col': 2}, - \ {'bufnr': bufnr('%'), 'match_id': 348, 'type': 'W', 'lnum': 2, 'col': 2}, + \ {'bufnr': bufnr('%'), 'match_id_list': [347], 'type': 'E', 'lnum': 1, 'col': 2}, + \ {'bufnr': bufnr('%'), 'match_id_list': [348], 'type': 'W', 'lnum': 2, 'col': 2}, \ {'bufnr': bufnr('%'), 'type': 'E', 'lnum': 3, 'col': 2}, \ {'bufnr': bufnr('%'), 'type': 'W', 'lnum': 4, 'col': 1}, \]) diff --git a/test/test_linting_updates_loclist.vader b/test/test_linting_updates_loclist.vader index b8a938a0..009a4537 100644 --- a/test/test_linting_updates_loclist.vader +++ b/test/test_linting_updates_loclist.vader @@ -66,7 +66,7 @@ Execute(The loclist should be updated after linting is done): AssertEqual ['' . bufnr('%')], keys(g:ale_buffer_info) - let g:expected_data[0].match_id = getmatches()[0].id - let g:expected_data[1].match_id = getmatches()[1].id + let g:expected_data[0].match_id_list = [getmatches()[0].id] + let g:expected_data[1].match_id_list = [getmatches()[1].id] AssertEqual g:expected_data, g:ale_buffer_info[bufnr('%')].loclist |