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:
Jan Edmund Lazo
2020-12-11 19:45:22 -05:00
committed by GitHub
parent a82bcf9d9c
commit 062576f679
7 changed files with 44 additions and 0 deletions

View File

@@ -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)