view src/testdir/test_plus_arg_edit.vim @ 12897:119a03a48c83 v8.0.1325

patch 8.0.1325: more tests are not run commit https://github.com/vim/vim/commit/5df95ea9ef34b5a898141ddc7134e4a7de713ba5 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 20 22:08:10 2017 +0100 patch 8.0.1325: more tests are not run Problem: More tests are not run. Solution: Add targets to the list of tests. (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Mon, 20 Nov 2017 22:15:05 +0100
parents 140d51d5b5c3
children 9e04de2aa738
line wrap: on
line source

" 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