diff options
author | w0rp <w0rp@users.noreply.github.com> | 2017-03-03 19:36:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-03 19:36:52 +0000 |
commit | 1f211dbe3e6820e60bcb5044690f31a288399e44 (patch) | |
tree | 67c1676bd9b96b2c0f3c652fa7980baa65880f28 /test/test_cursor_warnings.vader | |
parent | 969274ccc2a2d334d36b3e767de362b8dc40f4e2 (diff) | |
parent | 7030758da623ad692d18ecaaffdac283b91d4d09 (diff) | |
download | ale-1f211dbe3e6820e60bcb5044690f31a288399e44.zip |
Merge pull request #374 from jwoudenberg/master
WIP: Add support for error details
Diffstat (limited to 'test/test_cursor_warnings.vader')
-rw-r--r-- | test/test_cursor_warnings.vader | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/test/test_cursor_warnings.vader b/test/test_cursor_warnings.vader index ab7937bd..75d6c975 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, @@ -123,3 +124,25 @@ Then(Check the cursor output): let g:lines = split(g:output, "\n") AssertEqual 'Infix operators must be spaced. (space-infix-ops)', 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:lines[-1] + +Execute(Evaluate the cursor detail function at line 2): + :2 + call ale#cursor#ShowCursorDetail() + +Then(Check the cursor output): + redir => g:output + :mess + redir END + + AssertEqual "Infix operators must be spaced. (space-infix-ops)", g:lines[-1] |