diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-09-22 11:17:41 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-09-22 12:40:26 +0800 |
| commit | 88099c11223398b2e7eb96eaa9385d24046db994 (patch) | |
| tree | c678c51f11158ed47d24817f1b1b6dbfabcf2aa1 /src/nvim/testdir/test_mapping.vim | |
| parent | dd2b7586f36ab10232d9024ddf2dfb436518269e (diff) | |
| download | rneovim-88099c11223398b2e7eb96eaa9385d24046db994.tar.gz rneovim-88099c11223398b2e7eb96eaa9385d24046db994.tar.bz2 rneovim-88099c11223398b2e7eb96eaa9385d24046db994.zip | |
vim-patch:8.2.2994: various code is not fully tested
Problem: Various code is not fully tested.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes vim/vim#8378)
https://github.com/vim/vim/commit/2d6d718dde7163c971d37b8f4f1ed8f2d25de130
Nvim does not support encoding=latin1 or compatible mode.
The two paste tests are applicable.
Diffstat (limited to 'src/nvim/testdir/test_mapping.vim')
| -rw-r--r-- | src/nvim/testdir/test_mapping.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_mapping.vim b/src/nvim/testdir/test_mapping.vim index d7bd53e421..bde3624adf 100644 --- a/src/nvim/testdir/test_mapping.vim +++ b/src/nvim/testdir/test_mapping.vim @@ -975,6 +975,21 @@ func Test_abbreviate_multi_byte() bwipe! endfunc +" Test for abbreviations with 'latin1' encoding +func Test_abbreviate_latin1_encoding() + " set encoding=latin1 + call assert_fails('abbr ab#$c ABC', 'E474:') + new + iabbr <buffer> #i #include + iabbr <buffer> ## #enddef + exe "normal i#i\<C-]>" + call assert_equal('#include', getline(1)) + exe "normal 0Di##\<C-]>" + call assert_equal('#enddef', getline(1)) + %bw! + set encoding=utf-8 +endfunc ++ " Test for <Plug> always being mapped, even when used with "noremap". func Test_plug_remap() let g:foo = 0 |