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.vader17
1 files changed, 16 insertions, 1 deletions
diff --git a/test/test_cursor_warnings.vader b/test/test_cursor_warnings.vader
index dbf5360f..136e6abc 100644
--- a/test/test_cursor_warnings.vader
+++ b/test/test_cursor_warnings.vader
@@ -95,4 +95,19 @@ Then(Check the cursor output):
:mess
redir END
- AssertEqual "Every statement should end with a semicolon", g:output[-1]
+ let g:lines = split(g:output, "\n")
+
+ 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
+
+ let g:lines = split(g:output, "\n")
+
+ AssertEqual "Infix operators must be spaced. (space-infix-ops)", g:lines[-1]