summaryrefslogtreecommitdiff
path: root/test/test_line_join.vader
blob: 26abb7c94475af6a1fd0b888f3920618710efebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
    call ale#engine#JoinNeovimOutput(joined_result, item)
  endfor
  AssertEqual g:expected_result, joined_result