blob: 6b354c510a3d9704d784c8c3d3fc35a709f19380 [file] [log] [blame]
Bram Moolenaar6b2e9382014-11-05 18:06:01 +01001Tests for writefile()
2
3STARTTEST
4:source small.vim
5:%delete _
6:let f = tempname()
7:call writefile(["over","written"], f, "b")
8:call writefile(["hello","world"], f, "b")
9:call writefile(["!", "good"], f, "a")
10:call writefile(["morning"], f, "ab")
11:call writefile(["", "vimmers"], f, "ab")
12:bwipeout!
13:$put =readfile(f)
14:1 delete _
15:w! test.out
Bram Moolenaarf4f79b82016-01-25 20:38:30 +010016:call delete(f)
Bram Moolenaar6b2e9382014-11-05 18:06:01 +010017:qa!
18ENDTEST
19