mirror of
https://github.com/neovim/neovim.git
synced 2025-12-04 21:52:41 +00:00
refactor(tests): introduce testprg()
Also:
- Add a describe('shell :!') section to system_spec.
- Make the test for #16271 work on systems without powershell.
This commit is contained in:
@@ -5,7 +5,7 @@ local command = helpers.command
|
||||
local feed_command = helpers.feed_command
|
||||
local eq = helpers.eq
|
||||
local eval = helpers.eval
|
||||
local nvim_dir = helpers.nvim_dir
|
||||
local testprg = helpers.testprg
|
||||
|
||||
describe('search highlighting', function()
|
||||
local screen
|
||||
@@ -305,7 +305,7 @@ describe('search highlighting', function()
|
||||
end)
|
||||
|
||||
it('is preserved during :terminal activity', function()
|
||||
feed([[:terminal "]]..nvim_dir..[[/shell-test" REP 5000 foo<cr>]])
|
||||
feed((':terminal "%s" REP 5000 foo<cr>'):format(testprg('shell-test')))
|
||||
|
||||
feed(':file term<CR>')
|
||||
feed('G') -- Follow :terminal output.
|
||||
|
||||
Reference in New Issue
Block a user