2017-01-19 15:01:51 -05:00
|
|
|
Before:
|
|
|
|
let g:test_output = [
|
|
|
|
\ ['one', 'two', 'thr'],
|
|
|
|
\ ['ee', ''],
|
|
|
|
\ ['fou'],
|
|
|
|
\ [''],
|
|
|
|
\ ['r', 'five'],
|
|
|
|
\ [],
|
|
|
|
\ ['', 'six']
|
|
|
|
\]
|
|
|
|
|
|
|
|
let g:expected_result = ['one', 'two', 'three', 'four', 'five', 'six']
|
|
|
|
|
|
|
|
After:
|
|
|
|
unlet g:test_output
|
|
|
|
unlet g:expected_result
|
|
|
|
|
|
|
|
Execute (Join the lines):
|
|
|
|
let joined_result = []
|
|
|
|
for item in g:test_output
|
2017-05-12 16:16:15 -04:00
|
|
|
call ale#job#JoinNeovimOutput(joined_result, item)
|
2017-01-19 15:01:51 -05:00
|
|
|
endfor
|
|
|
|
AssertEqual g:expected_result, joined_result
|