Mercurial > vim
view src/testdir/test_writefile.in @ 8505:abb7353dd6cd
Added tag v7.4.1542 for changeset 0b31cc4b261e167071e37404e7769dbeb217fc4f
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 12 Mar 2016 15:45:04 +0100 |
parents | 26bb1a6abe25 |
children |
line wrap: on
line source
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 :call delete(f) :qa! ENDTEST