Mercurial > vim
diff src/testdir/test_plus_arg_edit.vim @ 11651:140d51d5b5c3 v8.0.0708
patch 8.0.0708: some tests are old style
commit https://github.com/vim/vim/commit/292eff0c5aacb8531d65509679b6c29eae8dc22a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 11 21:46:28 2017 +0200
patch 8.0.0708: some tests are old style
Problem: Some tests are old style.
Solution: Change a few tests from old style to new style. (pschuh,
closes #1813)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 11 Jul 2017 22:00:03 +0200 |
parents | |
children | 9e04de2aa738 |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/src/testdir/test_plus_arg_edit.vim @@ -0,0 +1,8 @@ +" Tests for complicated + argument to :edit command +function Test_edit() + call writefile(["foo|bar"], "Xfile1") + call writefile(["foo/bar"], "Xfile2") + edit +1|s/|/PIPE/|w Xfile1| e Xfile2|1 | s/\//SLASH/|w + call assert_equal(["fooPIPEbar"], readfile("Xfile1")) + call assert_equal(["fooSLASHbar"], readfile("Xfile2")) +endfunction