diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-29 21:57:34 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-29 21:57:34 +0100 |
commit | 5d98dc2a48156d44139b75c689bd3137ff7fe8bf (patch) | |
tree | 0622310d475027658462943b1b9a9c85fc3ec48e /src/testdir/test_options.vim | |
parent | 0ff6aad393c4130818fb4f49137380f78d7cc882 (diff) | |
download | vim-git-5d98dc2a48156d44139b75c689bd3137ff7fe8bf.tar.gz |
patch 8.2.0174: various commands not completely testedv8.2.0174
Problem: Various commands not completely tested.
Solution: Add more test cases. (Yegappan Lakshmanan, closes #5551)
Diffstat (limited to 'src/testdir/test_options.vim')
-rw-r--r-- | src/testdir/test_options.vim | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim index 7a74af652..e3f2c1067 100644 --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -640,3 +640,24 @@ func Test_visualbell() set novisualbell set belloff=all endfunc + +" Test for the 'write' option +func Test_write() + new + call setline(1, ['L1']) + set nowrite + call assert_fails('write Xfile', 'E142:') + set write + close! +endfunc + +" Test for 'buftype' option +func Test_buftype() + new + call setline(1, ['L1']) + set buftype=nowrite + call assert_fails('write', 'E382:') + close! +endfunc + +" vim: shiftwidth=2 sts=2 expandtab |