From 70711022db8c8a5602550601ef275c20b2105bcc Mon Sep 17 00:00:00 2001 From: Jasper Woudenberg Date: Wed, 1 Mar 2017 23:14:30 -0800 Subject: Add support for error details Some review needed. --- test/test_cursor_warnings.vader | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'test') 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] -- cgit v1.2.3