diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-08-23 08:36:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-23 08:36:22 +0800 |
| commit | 48a4657aee76e41d097b0730c91bcca78b5bc9c7 (patch) | |
| tree | 194dcaf49382d2b1577fd95b9de7cfacf9513da0 /src/nvim/testdir/test_functions.vim | |
| parent | 2fd25fb909fd4472c46c8c3c652b21d70bac9e77 (diff) | |
| download | rneovim-48a4657aee76e41d097b0730c91bcca78b5bc9c7.tar.gz rneovim-48a4657aee76e41d097b0730c91bcca78b5bc9c7.tar.bz2 rneovim-48a4657aee76e41d097b0730c91bcca78b5bc9c7.zip | |
vim-patch:8.1.{1915,1921,1953} (#19900)
vim-patch:8.1.1915: more functions can be used as methods
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
https://github.com/vim/vim/commit/1a3a89168d61c2fed91cbca812cf1c6983901b79
Move debugbreak() to the right place.
vim-patch:8.1.1921: more functions can be used as methods
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
https://github.com/vim/vim/commit/a4208966fb289a505ebdef62bbc37c214069bab4
vim-patch:8.1.1953: more functions can be used as a method
Problem: More functions can be used as a method.
Solution: Allow more functions to be used as a method.
https://github.com/vim/vim/commit/f9f24ce7a0e5988fedf2e2ff751818f9b07510a6
Omit test_termcodes.vim: cannot be used and superseded by later patches.
Cherry-pick test_bufline.vim change from patch 8.1.1993.
Diffstat (limited to 'src/nvim/testdir/test_functions.vim')
| -rw-r--r-- | src/nvim/testdir/test_functions.vim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim index 05636199a4..b024df5a45 100644 --- a/src/nvim/testdir/test_functions.vim +++ b/src/nvim/testdir/test_functions.vim @@ -1713,7 +1713,7 @@ func Test_confirm() call assert_equal(1, a) call feedkeys('y', 'L') - let a = confirm('Are you sure?', "&Yes\n&No") + let a = 'Are you sure?'->confirm("&Yes\n&No") call assert_equal(1, a) call feedkeys('n', 'L') @@ -1727,7 +1727,7 @@ func Test_confirm() " <Esc> requires another character to avoid it being seen as the start of an " escape sequence. Zero should be harmless. - call feedkeys("\<Esc>0", 'L') + eval "\<Esc>0"->feedkeys('L') let a = confirm('Are you sure?', "&Yes\n&No") call assert_equal(0, a) @@ -1784,7 +1784,7 @@ func Test_readdir() let files = readdir('Xdir', {x -> len(add(l, x)) == 2 ? -1 : 1}) call assert_equal(1, len(files)) - call delete('Xdir', 'rf') + eval 'Xdir'->delete('rf') endfunc func Test_delete_rf() @@ -1827,6 +1827,7 @@ endfunc func Test_char2nr() call assert_equal(12354, char2nr('あ', 1)) + call assert_equal(120, 'x'->char2nr()) endfunc func Test_charclass() |