Mercurial > vim
comparison src/testdir/test_normal.vim @ 20990:55b3849ded11 v8.2.1046
patch 8.2.1046: insufficient tests for src/buffer.c
Commit: https://github.com/vim/vim/commit/b7e2483655d9b68df0c7349918027d800051a28a
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 24 13:37:35 2020 +0200
patch 8.2.1046: insufficient tests for src/buffer.c
Problem: Insufficient tests for src/buffer.c.
Solution: Add more tests. Move comments related tests to a separate file.
(Yegappan Lakshmanan, closes #6325)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 24 Jun 2020 13:45:06 +0200 |
parents | 2c3e7a6bd6c6 |
children | 6a4806e326dd |
comparison
equal
deleted
inserted
replaced
20989:c27f8e4ea9d7 | 20990:55b3849ded11 |
---|---|
1265 " Edit a fresh file and wipe the buffer list so that there is no alternate | 1265 " Edit a fresh file and wipe the buffer list so that there is no alternate |
1266 " file present. Next, check for the expected command failures. | 1266 " file present. Next, check for the expected command failures. |
1267 edit Xfoo | %bw | 1267 edit Xfoo | %bw |
1268 call assert_fails(':buffer #', 'E86') | 1268 call assert_fails(':buffer #', 'E86') |
1269 call assert_fails(':execute "normal! \<C-^>"', 'E23') | 1269 call assert_fails(':execute "normal! \<C-^>"', 'E23') |
1270 call assert_fails("normal i\<C-R>#", 'E23:') | |
1270 | 1271 |
1271 " Test for the expected behavior when switching between two named buffers. | 1272 " Test for the expected behavior when switching between two named buffers. |
1272 edit Xfoo | edit Xbar | 1273 edit Xfoo | edit Xbar |
1273 call feedkeys("\<C-^>", 'tx') | 1274 call feedkeys("\<C-^>", 'tx') |
1274 call assert_equal('Xfoo', fnamemodify(bufname('%'), ':t')) | 1275 call assert_equal('Xfoo', fnamemodify(bufname('%'), ':t')) |