summaryrefslogtreecommitdiff
path: root/test/test_line_join.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-12-26 18:15:51 +0000
committerw0rp <devw0rp@gmail.com>2017-12-26 18:15:59 +0000
commitc165c7c5d11eb827a3be6bab691f20eeb6f6e487 (patch)
treef4ccc2a397183ecca239e32e585c2f9cf7478a79 /test/test_line_join.vader
parent48cae6afc473173fd0ad6764f96dc01cbdc09544 (diff)
downloadale-c165c7c5d11eb827a3be6bab691f20eeb6f6e487.zip
Fix #1251 - Handle an empty list in the line callback when NeoVim crashes
Diffstat (limited to 'test/test_line_join.vader')
-rw-r--r--test/test_line_join.vader6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_line_join.vader b/test/test_line_join.vader
index c93b192f..25cefbcf 100644
--- a/test/test_line_join.vader
+++ b/test/test_line_join.vader
@@ -17,6 +17,12 @@ After:
delfunction LineCallback
delfunction RawCallback
+Execute (ALE should handle empty Lists for the lines):
+ let g:last_line = ale#job#JoinNeovimOutput(1, '', [], 'nl', function('LineCallback'))
+
+ AssertEqual [], g:lines
+ AssertEqual '', g:last_line
+
Execute (ALE should pass on full lines for NeoVim):
let g:last_line = ale#job#JoinNeovimOutput(1, '', ['x', 'y', ''], 'nl', function('LineCallback'))