| Bram Moolenaar | 41e0f2f | 2016-03-08 14:44:42 +0100 | [diff] [blame] | 1 | " Test for joining lines. |
| 2 | |||||
| 3 | func 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! | ||||
| 13 | endfunc | ||||