mirror of https://github.com/dense-analysis/ale
Add tests for \r removal
This commit is contained in:
parent
31942c99b9
commit
cdaeca452e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue