annotate src/testdir/test_writefile.in @ 7004:19e7e0fce7a5

Added tag v7-4-819 for changeset bc269cf15ccd
author Bram Moolenaar <bram@vim.org>
date Tue, 11 Aug 2015 18:33:48 +0200
parents 094a87e76155
children 26bb1a6abe25
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6341
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Tests for writefile()
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :source small.vim
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :%delete _
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :let f = tempname()
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :call writefile(["over","written"], f, "b")
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :call writefile(["hello","world"], f, "b")
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :call writefile(["!", "good"], f, "a")
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :call writefile(["morning"], f, "ab")
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :call writefile(["", "vimmers"], f, "ab")
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :bwipeout!
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :$put =readfile(f)
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 :1 delete _
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 :w! test.out
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 :qa!
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 ENDTEST
094a87e76155 updated for version 7.4.503
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18