summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-06 22:46:32 +0000
committerw0rp <devw0rp@gmail.com>2017-11-06 22:46:32 +0000
commit8e71f82f8f4f0336ae74fe0e77398c27ea0c5309 (patch)
tree3aec99943a528f40b5c410420a0f4a9f56614889 /test
parent3cbf716d722cc03c833f49a40686d5bac0de7e16 (diff)
downloadale-8e71f82f8f4f0336ae74fe0e77398c27ea0c5309.zip
#1006 Fix raw message handling for LSP support in NeoVim
Diffstat (limited to 'test')
-rw-r--r--test/test_line_join.vader24
1 files changed, 6 insertions, 18 deletions
diff --git a/test/test_line_join.vader b/test/test_line_join.vader
index 04264296..c93b192f 100644
--- a/test/test_line_join.vader
+++ b/test/test_line_join.vader
@@ -62,8 +62,8 @@ Execute (ALE should pass on full lines for NeoVim for raw data):
Execute (ALE should pass on a single long line):
let g:last_line = ale#job#JoinNeovimOutput(1, '', ['x'], 'raw', function('RawCallback'))
- AssertEqual '', g:data
- AssertEqual 'x', g:last_line
+ AssertEqual 'x', g:data
+ AssertEqual '', g:last_line
Execute (ALE should handle just a single line of output):
let g:last_line = ale#job#JoinNeovimOutput(1, '', ['x', ''], 'raw', function('RawCallback'))
@@ -71,20 +71,8 @@ Execute (ALE should handle just a single line of output):
AssertEqual "x\n", g:data
AssertEqual '', g:last_line
-Execute (ALE should join two incomplete pieces of large lines together):
- let g:last_line = ale#job#JoinNeovimOutput(1, 'x', ['y'], 'raw', function('RawCallback'))
-
- AssertEqual '', g:data
- AssertEqual 'xy', g:last_line
-
-Execute (ALE join incomplete lines, and set new ones):
- let g:last_line = ale#job#JoinNeovimOutput(1, 'x', ['y', 'z', 'a'], 'raw', function('RawCallback'))
+Execute (ALE should pass on two lines and one incomplete one):
+ let g:last_line = ale#job#JoinNeovimOutput(1, '', ['y', 'z', 'a'], 'raw', function('RawCallback'))
- AssertEqual "xy\nz\n", g:data
- AssertEqual 'a', g:last_line
-
-Execute (ALE join incomplete lines, and set new ones, with two elements):
- let g:last_line = ale#job#JoinNeovimOutput(1, 'x', ['y', 'z'], 'raw', function('RawCallback'))
-
- AssertEqual "xy\n", g:data
- AssertEqual 'z', g:last_line
+ AssertEqual "y\nz\na", g:data
+ AssertEqual '', g:last_line