diff options
author | Jasper Woudenberg <mail@jasperwoudenberg.com> | 2017-03-01 23:14:30 -0800 |
---|---|---|
committer | Jasper Woudenberg <mail@jasperwoudenberg.com> | 2017-03-01 23:27:48 -0800 |
commit | 70711022db8c8a5602550601ef275c20b2105bcc (patch) | |
tree | cf4241f15b0d696c98f2ccb625b8548901e32e44 /test | |
parent | 18508f74532f41aa4c66a5e217550f00d150a30d (diff) | |
download | ale-70711022db8c8a5602550601ef275c20b2105bcc.zip |
Add support for error details
Some review needed.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_cursor_warnings.vader | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/test_cursor_warnings.vader b/test/test_cursor_warnings.vader index b12f2451..dbf5360f 100644 --- a/test/test_cursor_warnings.vader +++ b/test/test_cursor_warnings.vader @@ -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] |