From 5029078df3d5d26d71d220d273a001a5aea9c416 Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 25 Oct 2017 00:58:10 +0100 Subject: Set better highlights for write-good --- test/handler/test_write_good_handler.vader | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/handler/test_write_good_handler.vader b/test/handler/test_write_good_handler.vader index b3eeb1b7..8bf4b223 100644 --- a/test/handler/test_write_good_handler.vader +++ b/test/handler/test_write_good_handler.vader @@ -4,9 +4,24 @@ Execute(The write-good handler should handle the example from the write-good REA \ { \ 'lnum': 1, \ 'col': 1, + \ 'end_col': 2, \ 'type': 'W', \ 'text': '"So" adds no meaning', - \ } + \ }, + \ { + \ 'lnum': 1, + \ 'col': 12, + \ 'end_col': 21, + \ 'type': 'W', + \ 'text': '"was stolen" may be passive voice', + \ }, + \ { + \ 'lnum': 6, + \ 'col': 2, + \ 'end_col': 2, + \ 'type': 'W', + \ 'text': '"foo bar" bla', + \ }, \ ], \ ale#handlers#writegood#Handle(bufnr(''), [ \ 'In /tmp/vBYivbZ/6/test.md', @@ -17,5 +32,6 @@ Execute(The write-good handler should handle the example from the write-good REA \ '-------------', \ 'So the cat was stolen.', \ ' ^^^^^^^^^^', - \ '"was stolen" may be passive voice on line 1 at column 11 ', + \ '"was stolen" may be passive voice on line 1 at column 11', + \ '"foo bar" bla on line 6 at column 1', \ ]) -- cgit v1.2.3