view src/testdir/test_feedkeys.vim @ 24178:d5328b2b0edf v8.2.2630

patch 8.2.2630: hard to see where a test gets stuck Commit: https://github.com/vim/vim/commit/592f57f5fec1064cc276a0d7992cc543bed04fd5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 20 16:44:25 2021 +0100 patch 8.2.2630: hard to see where a test gets stuck Problem: Hard to see where a test gets stuck. Solution: Print the executed test function. (Dominique Pell?, closes https://github.com/vim/vim/issues/7975)
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Mar 2021 16:45:02 +0100
parents 08940efa6b4e
children e06cbcf4b94b
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

" vim: shiftwidth=2 sts=2 expandtab