blob: 8a028f1e5590ab174de824899f909df1cde8e70e [file] [log] [blame]
Bram Moolenaar41e0f2f2016-03-08 14:44:42 +01001" Test for joining lines.
2
3func Test_join_with_count()
4 new
5 call setline(1, ['one', 'two', 'three', 'four'])
6 normal J
7 call assert_equal('one two', getline(1))
8 %del
9 call setline(1, ['one', 'two', 'three', 'four'])
10 normal 10J
11 call assert_equal('one two three four', getline(1))
12 quit!
13endfunc