mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
test: simplify platform detection (#21020)
Extend the capabilities of is_os to detect more platforms such as freebsd and openbsd. Also remove `iswin()` helper function as it can be replaced by `is_os("win")`.
This commit is contained in:
@@ -16,7 +16,7 @@ describe("'autochdir'", function()
|
||||
|
||||
-- With 'autochdir' on, we should get the directory of tty-test.c.
|
||||
clear('--cmd', 'set autochdir', targetdir..'/tty-test.c')
|
||||
eq(helpers.iswin() and expected:gsub('/', '\\') or expected, funcs.getcwd())
|
||||
eq(helpers.is_os('win') and expected:gsub('/', '\\') or expected, funcs.getcwd())
|
||||
end)
|
||||
|
||||
it('is not overwritten by getwinvar() call #17609',function()
|
||||
|
Reference in New Issue
Block a user