aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_options.vim
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-04-19 19:57:19 +0100
committerSean Dewar <seandewar@users.noreply.github.com>2021-04-20 01:50:56 +0100
commit96f62394cfc74e731529ed68039aa8da1facdf13 (patch)
tree3c8ed8650db3b94f93f4279a5fc2219e1784756d /src/nvim/testdir/test_options.vim
parent26bd5a58dff1b920757f3bc010c2e8f9dbfc9d40 (diff)
downloadrneovim-96f62394cfc74e731529ed68039aa8da1facdf13.tar.gz
rneovim-96f62394cfc74e731529ed68039aa8da1facdf13.tar.bz2
rneovim-96f62394cfc74e731529ed68039aa8da1facdf13.zip
vim-patch:8.2.0174: various commands not completely tested
Problem: Various commands not completely tested. Solution: Add more test cases. (Yegappan Lakshmanan, closes vim/vim#5551) https://github.com/vim/vim/commit/5d98dc2a48156d44139b75c689bd3137ff7fe8bf
Diffstat (limited to 'src/nvim/testdir/test_options.vim')
-rw-r--r--src/nvim/testdir/test_options.vim19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index 5aef33cb09..8796af7a20 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/testdir/test_options.vim
@@ -629,6 +629,25 @@ func Test_visualbell()
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
+
" Test for setting option values using v:false and v:true
func Test_opt_boolean()
set number&