diff options
Diffstat (limited to 'src/testdir/test_writefile.in')
-rw-r--r-- | src/testdir/test_writefile.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/testdir/test_writefile.in b/src/testdir/test_writefile.in new file mode 100644 index 000000000..f2dc7d50b --- /dev/null +++ b/src/testdir/test_writefile.in @@ -0,0 +1,18 @@ +Tests for writefile() + +STARTTEST +:source small.vim +:%delete _ +:let f = tempname() +:call writefile(["over","written"], f, "b") +:call writefile(["hello","world"], f, "b") +:call writefile(["!", "good"], f, "a") +:call writefile(["morning"], f, "ab") +:call writefile(["", "vimmers"], f, "ab") +:bwipeout! +:$put =readfile(f) +:1 delete _ +:w! test.out +:qa! +ENDTEST + |