view src/testdir/test_join.vim @ 12586:0d29a806e6d1 v8.0.1171

patch 8.0.1171: popup test is still a bit flaky commit https://github.com/vim/vim/commit/712549e04eddd6687c4b7654ec9af6da6c365603 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 1 16:59:18 2017 +0200 patch 8.0.1171: popup test is still a bit flaky Problem: Popup test is still a bit flaky. Solution: Change term_wait() calls. (Ozaki Kiichi)
author Christian Brabandt <cb@256bit.org>
date Sun, 01 Oct 2017 17:00:05 +0200
parents dd2e2bd69d0e
children 15f0f9f16cd9
line wrap: on
line source

" Test for joining lines.

func Test_join_with_count()
  new
  call setline(1, ['one', 'two', 'three', 'four'])
  normal J
  call assert_equal('one two', getline(1))
  %del
  call setline(1, ['one', 'two', 'three', 'four'])
  normal 10J
  call assert_equal('one two three four', getline(1))
  quit!
endfunc