annotate src/testdir/test_plus_arg_edit.vim @ 13428:b82547f4a465

Added tag v8.0.1588 for changeset b85526d90aba302de98d23374dff884d2d6fd021
author Christian Brabandt <cb@256bit.org>
date Wed, 07 Mar 2018 22:15:06 +0100
parents 9e04de2aa738
children c1ead25ed819
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11651
140d51d5b5c3 patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " Tests for complicated + argument to :edit command
140d51d5b5c3 patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 function Test_edit()
140d51d5b5c3 patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 call writefile(["foo|bar"], "Xfile1")
140d51d5b5c3 patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 call writefile(["foo/bar"], "Xfile2")
140d51d5b5c3 patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5 edit +1|s/|/PIPE/|w Xfile1| e Xfile2|1 | s/\//SLASH/|w
140d51d5b5c3 patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 call assert_equal(["fooPIPEbar"], readfile("Xfile1"))
140d51d5b5c3 patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 call assert_equal(["fooSLASHbar"], readfile("Xfile2"))
12899
9e04de2aa738 patch 8.0.1326: largefile test fails on CI, glob test on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 11651
diff changeset
8 call delete('Xfile1')
9e04de2aa738 patch 8.0.1326: largefile test fails on CI, glob test on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 11651
diff changeset
9 call delete('Xfile2')
11651
140d51d5b5c3 patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 endfunction