view src/testdir/test_feedkeys.vim @ 18650:3aab097c8d26 v8.1.2317

patch 8.1.2317: no test for spell affix file with flag on suffix Commit: https://github.com/vim/vim/commit/37ff4cf87069e54f991d86df9beff19bfdd15875 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 17 20:10:20 2019 +0100 patch 8.1.2317: no test for spell affix file with flag on suffix Problem: No test for spell affix file with flag on suffix. Solution: Add a test case.
author Bram Moolenaar <Bram@vim.org>
date Sun, 17 Nov 2019 20:15:03 +0100
parents 6b70b9cdebfc
children 08940efa6b4e
line wrap: on
line source

" Test feedkeys() function.

func Test_feedkeys_x_with_empty_string()
  new
  call feedkeys("ifoo\<Esc>")
  call assert_equal('', getline('.'))
  call feedkeys('', 'x')
  call assert_equal('foo', getline('.'))

  " check it goes back to normal mode immediately.
  call feedkeys('i', 'x')
  call assert_equal('foo', getline('.'))
  quit!
endfunc