aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_writefile.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2020-02-16 23:18:24 -0800
committerGitHub <noreply@github.com>2020-02-16 23:18:24 -0800
commit03f245c0b810fa2ff980bd3bf2530d94fd0f05d3 (patch)
treedbbd77ecb94314d118f0a9a9a001d33ba1b74053 /src/nvim/testdir/test_writefile.vim
parent0c5d2ffebe92e710ca57d4e3f0b0789ccc369660 (diff)
parent1ce4b3c9a7420227c3ecffab782cb8da732998f5 (diff)
downloadrneovim-03f245c0b810fa2ff980bd3bf2530d94fd0f05d3.tar.gz
rneovim-03f245c0b810fa2ff980bd3bf2530d94fd0f05d3.tar.bz2
rneovim-03f245c0b810fa2ff980bd3bf2530d94fd0f05d3.zip
Merge #11873 from janlazo/vim-8.1.0786
vim-patch:8.0.1660,8.1.{43,786,1201,2129,2131,2187,2223,2259},8.2.{241,267}
Diffstat (limited to 'src/nvim/testdir/test_writefile.vim')
-rw-r--r--src/nvim/testdir/test_writefile.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_writefile.vim b/src/nvim/testdir/test_writefile.vim
index 6066d61af4..56031662a3 100644
--- a/src/nvim/testdir/test_writefile.vim
+++ b/src/nvim/testdir/test_writefile.vim
@@ -1,4 +1,4 @@
-" Tests for the writefile() function.
+" Tests for the writefile() function and some :write commands.
func Test_writefile()
let f = tempname()
@@ -16,6 +16,11 @@ func Test_writefile()
call delete(f)
endfunc
+func Test_writefile_ignore_regexp_error()
+ write Xt[z-a]est.txt
+ call delete('Xt[z-a]est.txt')
+endfunc
+
func Test_writefile_fails_gently()
call assert_fails('call writefile(["test"], "Xfile", [])', 'E730:')
call assert_false(filereadable("Xfile"))