diff options
author | w0rp <devw0rp@gmail.com> | 2020-08-31 09:01:41 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2020-08-31 09:01:44 +0100 |
commit | cdaeca452e7fe24b117ac840b392fe4e89acda57 (patch) | |
tree | 495da8e31d6460dd11e2c9902c7c3d3bf5dc3492 | |
parent | 31942c99b99439f6a8c5e25d45942f37437175d6 (diff) | |
download | ale-cdaeca452e7fe24b117ac840b392fe4e89acda57.zip |
Add tests for \r removal
-rw-r--r-- | test/test_cursor_warnings.vader | 2 | ||||
-rw-r--r-- | test/test_list_formatting.vader | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/test_cursor_warnings.vader b/test/test_cursor_warnings.vader index 339cd71e..ef385061 100644 --- a/test/test_cursor_warnings.vader +++ b/test/test_cursor_warnings.vader @@ -30,7 +30,7 @@ Before: \ 'nr': -1, \ 'type': 'E', \ 'code': 'semi', - \ 'text': 'Missing semicolon.', + \ 'text': "Missing semicolon.\r", \ 'detail': "Every statement should end with a semicolon\nsecond line", \ }, \ { diff --git a/test/test_list_formatting.vader b/test/test_list_formatting.vader index dcefac53..d79a664b 100644 --- a/test/test_list_formatting.vader +++ b/test/test_list_formatting.vader @@ -36,7 +36,7 @@ After: call setqflist([]) Execute(Formatting with codes should work for the loclist): - call AddItem({'text': 'nocode'}) + call AddItem({'text': "nocode\r"}) call ale#list#SetLists(bufnr(''), g:loclist) AssertEqual @@ -79,7 +79,7 @@ Execute(Formatting with codes should work for the quickfix list): let g:ale_set_loclist = 0 let g:ale_set_quickfix = 1 - call AddItem({'text': 'nocode'}) + call AddItem({'text': "nocode\r"}) call ale#list#SetLists(bufnr(''), g:loclist) AssertEqual |