Add support for error details
Some review needed.
This commit is contained in:
parent
18508f7453
commit
70711022db
5 changed files with 47 additions and 1 deletions
|
@ -10,7 +10,8 @@ Before:
|
|||
\ 'nr': -1,
|
||||
\ 'type': 'E',
|
||||
\ 'col': 10,
|
||||
\ 'text': 'Missing semicolon. (semi)'
|
||||
\ 'text': 'Missing semicolon. (semi)',
|
||||
\ 'detail': 'Every statement should end with a semicolon'
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 2,
|
||||
|
@ -84,3 +85,14 @@ Then(Check the cursor output):
|
|||
let g:lines = split(g:output, "\n")
|
||||
|
||||
AssertEqual 'Missing radix parameter (radix)', g:lines[-1]
|
||||
|
||||
Execute(Evaluate the cursor detail function at line 1):
|
||||
:1
|
||||
call ale#cursor#ShowCursorDetail()
|
||||
|
||||
Then(Check the cursor output):
|
||||
redir => g:output
|
||||
:mess
|
||||
redir END
|
||||
|
||||
AssertEqual "Every statement should end with a semicolon", g:output[-1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue