view src/testdir/test_erasebackword.vim @ 28113:9ef1bbe6707e v8.2.4581

patch 8.2.4581: null types not fully tested Commit: https://github.com/vim/vim/commit/d597ab00d799aa078be32e6677e01a7582106105 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 16 17:56:33 2022 +0000 patch 8.2.4581: null types not fully tested Problem: Null types not fully tested. Solution: Add some more tests using null types.
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Mar 2022 19:00:04 +0100
parents 08940efa6b4e
children
line wrap: on
line source

" Test for i_CTRL-W

func Test_erasebackword()
  enew

  exe "normal o wwwこんにちわ世界ワールドvim \<C-W>"
  call assert_equal(' wwwこんにちわ世界ワールド', getline('.'))
  exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>"
  call assert_equal(' wwwこんにちわ世界', getline('.'))
  exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>"
  call assert_equal(' wwwこんにちわ', getline('.'))
  exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>"
  call assert_equal(' www', getline('.'))
  exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>\<C-W>"
  call assert_equal(' ', getline('.'))
  exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>\<C-W>\<C-W>"
  call assert_equal('', getline('.'))

  enew!
endfunc

" vim: shiftwidth=2 sts=2 expandtab