Mercurial > vim
view src/testdir/test_feedkeys.vim @ 22796:d3694e3685d3 v8.2.1946
patch 8.2.1946: sort() with NULL string not tested
Commit: https://github.com/vim/vim/commit/35efa22ff2b98126363098db9304796b5624f97f
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 3 18:51:54 2020 +0100
patch 8.2.1946: sort() with NULL string not tested
Problem: sort() with NULL string not tested.
Solution: Add a test. use v:collate. (Dominique Pell?, closes https://github.com/vim/vim/issues/7247)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 03 Nov 2020 19:00:03 +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