Mercurial > vim
annotate src/testdir/test_plus_arg_edit.vim @ 13138:0f906f414c69 v8.0.1443
patch 8.0.1443: compiler complains about uninitialized variable
commit https://github.com/vim/vim/commit/059fd01021779ee369c1e55557275f6c349fda9e
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 31 14:25:53 2018 +0100
patch 8.0.1443: compiler complains about uninitialized variable
Problem: Compiler complains about uninitialized variable. (Tony Mechelynck)
Solution: Assign a value to the variable.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 31 Jan 2018 14:30:05 +0100 |
parents | 9e04de2aa738 |
children | c1ead25ed819 |
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 |