mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 20:38:18 +00:00
vim-patch:8.2.0047: cannot skip tests for specific MS-Windows platform (#13461)
Problem: Cannot skip tests for specific MS-Windows platform.
Solution: Add windowsversion().
0c1e3744ff
This commit is contained in:
@@ -2,7 +2,10 @@ local helpers = require('test.functional.helpers')(after_each)
|
||||
|
||||
local clear = helpers.clear
|
||||
local eq = helpers.eq
|
||||
local matches = helpers.matches
|
||||
local exc_exec = helpers.exc_exec
|
||||
local iswin = helpers.iswin
|
||||
local eval = helpers.eval
|
||||
|
||||
describe('Up to MAX_FUNC_ARGS arguments are handled by', function()
|
||||
local max_func_args = 20 -- from eval.h
|
||||
@@ -27,3 +30,8 @@ describe('Up to MAX_FUNC_ARGS arguments are handled by', function()
|
||||
eq('Vim(call):E740: Too many arguments for function rpcnotify', ret)
|
||||
end)
|
||||
end)
|
||||
|
||||
it('windowsversion()', function()
|
||||
clear()
|
||||
matches(iswin() and '^%d+%.%d+$' or '^$', eval('windowsversion()'))
|
||||
end)
|
||||
|
Reference in New Issue
Block a user