aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_options.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-09 17:08:21 -0400
committerGitHub <noreply@github.com>2021-05-09 17:08:21 -0400
commitd2be261e8d1bcf165346255ae701564a5f62bf7d (patch)
tree470c5fb8f4e57098295e87f0df318f729569dd83 /src/nvim/testdir/test_options.vim
parentf8173df4d7ecec239629921736340d3f4d1dcfd4 (diff)
parenteef5a627bfc4341fdd6f12ea5932d11b12fbf2c0 (diff)
downloadrneovim-d2be261e8d1bcf165346255ae701564a5f62bf7d.tar.gz
rneovim-d2be261e8d1bcf165346255ae701564a5f62bf7d.tar.bz2
rneovim-d2be261e8d1bcf165346255ae701564a5f62bf7d.zip
Merge pull request #14403 from seandewar/vim-8.2.1933
vim-patch:8.2.{0174,1933,1935,1946,2286,2287}
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&