annotate src/testdir/test_writefile.in @ 7528:53163e4d9e4f v7.4.1065

commit https://github.com/vim/vim/commit/25e4fcde767084d1a79e0926bc301c92987c0cce Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 9 14:57:47 2016 +0100 patch 7.4.1065 Problem: Cannot use the "dll" options on MS-Windows. Solution: Support the options on all platforms. Use the built-in name as the default, so that it's clear what Vim is looking for.
author Christian Brabandt <cb@256bit.org>
date Sat, 09 Jan 2016 15:00:05 +0100
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