Mercurial > vim
comparison src/testdir/test_startup.vim @ 24620:9f48b262539b v8.2.2849
patch 8.2.2849: bufwrite not sufficiently tested
Commit: https://github.com/vim/vim/commit/36f96a515109dc1fad279571a645c0f0d65f2de4
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu May 13 18:33:16 2021 +0200
patch 8.2.2849: bufwrite not sufficiently tested
Problem: Bufwrite not sufficiently tested.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/8192)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 13 May 2021 18:45:02 +0200 |
parents | acd9220bdd0b |
children | 08eced3add83 |
comparison
equal
deleted
inserted
replaced
24619:53939914f672 | 24620:9f48b262539b |
---|---|
1268 | 1268 |
1269 call delete('Xprogname_after') | 1269 call delete('Xprogname_after') |
1270 call delete('Xprogname', 'd') | 1270 call delete('Xprogname', 'd') |
1271 endfunc | 1271 endfunc |
1272 | 1272 |
1273 " Test for doing a write from .vimrc | |
1274 func Test_write_in_vimrc() | |
1275 call writefile(['silent! write'], 'Xvimrc') | |
1276 let after =<< trim [CODE] | |
1277 call assert_match('E32: ', v:errmsg) | |
1278 call writefile(v:errors, 'Xtestout') | |
1279 qall | |
1280 [CODE] | |
1281 if RunVim([], after, '-u Xvimrc') | |
1282 call assert_equal([], readfile('Xtestout')) | |
1283 call delete('Xtestout') | |
1284 endif | |
1285 call delete('Xvimrc') | |
1286 endfunc | |
1287 | |
1273 " vim: shiftwidth=2 sts=2 expandtab | 1288 " vim: shiftwidth=2 sts=2 expandtab |