summaryrefslogtreecommitdiff
path: root/src/testdir/test_writefile.in
blob: f2dc7d50bbda4dfb58926a6a811e2b1dbef6db1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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