view src/testdir/test_feedkeys.vim @ 19029:8aa4ba1f9345 v8.2.0075

patch 8.2.0075: Python 3 unicode test still sometimes fails Commit: https://github.com/vim/vim/commit/2466aea508f22d44099d54ed6d15c0a1d90f8d6e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 1 17:09:11 2020 +0100 patch 8.2.0075: Python 3 unicode test still sometimes fails Problem: Python 3 unicode test still sometimes fails. Solution: Skip the test when 'termencoding' is not empty.
author Bram Moolenaar <Bram@vim.org>
date Wed, 01 Jan 2020 17: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