summaryrefslogtreecommitdiff
path: root/test/test_cursor_warnings.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_cursor_warnings.vader')
-rw-r--r--test/test_cursor_warnings.vader14
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]