diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-14 18:15:31 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-14 18:15:31 +0800 |
| commit | c6f0be116ec7481f16341552940764a1f3c6d1c7 (patch) | |
| tree | 22837cb423804c7d9ac5c3cd80aa2932540865c2 /src/nvim/testdir/test_marks.vim | |
| parent | b81d1eb26502f403574113385a75444f8880828e (diff) | |
| parent | 314f1a7c2168ee7e99e2d2b348146df092341a64 (diff) | |
| download | rneovim-c6f0be116ec7481f16341552940764a1f3c6d1c7.tar.gz rneovim-c6f0be116ec7481f16341552940764a1f3c6d1c7.tar.bz2 rneovim-c6f0be116ec7481f16341552940764a1f3c6d1c7.zip | |
Merge pull request #19353 from zeertzjq/vim-8.2.0369
vim-patch:8.2.{0342,0347,0369}: insufficient test coverage
Diffstat (limited to 'src/nvim/testdir/test_marks.vim')
| -rw-r--r-- | src/nvim/testdir/test_marks.vim | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_marks.vim b/src/nvim/testdir/test_marks.vim index 608f9883c2..8f94224128 100644 --- a/src/nvim/testdir/test_marks.vim +++ b/src/nvim/testdir/test_marks.vim @@ -215,6 +215,7 @@ func Test_mark_error() call assert_fails('mark', 'E471:') call assert_fails('mark xx', 'E488:') call assert_fails('mark _', 'E191:') + call assert_beeps('normal! m~') endfunc " Test for :lockmarks when pasting content @@ -241,6 +242,29 @@ func Test_marks_k_cmd() close! endfunc +" Test for file marks (A-Z) +func Test_file_mark() + new Xone + call setline(1, ['aaa', 'bbb']) + norm! G$mB + w! + new Xtwo + call setline(1, ['ccc', 'ddd']) + norm! GmD + w! + + enew + normal! `B + call assert_equal('Xone', bufname()) + call assert_equal([2, 3], [line('.'), col('.')]) + normal! 'D + call assert_equal('Xtwo', bufname()) + call assert_equal([2, 1], [line('.'), col('.')]) + + call delete('Xone') + call delete('Xtwo') +endfunc + " Test for the getmarklist() function func Test_getmarklist() new |