mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +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 clear, insert = helpers.clear, helpers.insert
|
||||
local command = helpers.command
|
||||
local meths = helpers.meths
|
||||
local iswin = helpers.iswin
|
||||
local nvim_dir = helpers.nvim_dir
|
||||
local testprg = helpers.testprg
|
||||
local thelpers = require('test.functional.terminal.helpers')
|
||||
|
||||
describe('ext_hlstate detailed highlights', function()
|
||||
@@ -191,7 +191,7 @@ describe('ext_hlstate detailed highlights', function()
|
||||
[6] = {{foreground = tonumber('0x40ffff'), fg_indexed=true}, {5, 1}},
|
||||
[7] = {{}, {{hi_name = "MsgArea", ui_name = "MsgArea", kind = "ui"}}},
|
||||
})
|
||||
command('enew | call termopen(["'..nvim_dir..'/tty-test"])')
|
||||
command(("enew | call termopen(['%s'])"):format(testprg('tty-test')))
|
||||
screen:expect([[
|
||||
^tty ready |
|
||||
{1: } |
|
||||
|
||||
Reference in New Issue
Block a user