Add tests for \r removal
This commit is contained in:
parent
31942c99b9
commit
cdaeca452e
2 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||
\ },
|
||||
\ {
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue