view src/testdir/test_erasebackword.vim @ 25634:27cb2e79ccde v8.2.3353

patch 8.2.3353: Vim9: type of argument for negate not checked at compile time Commit: https://github.com/vim/vim/commit/cd6b4f300189b4920f7ee7f0204338e91210674b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 15 20:36:28 2021 +0200 patch 8.2.3353: Vim9: type of argument for negate not checked at compile time Problem: Vim9: type of argument for negate not checked at compile time. Solution: Add a compile time check.
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 Aug 2021 20:45:04 +0200
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