aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-11 19:45:22 -0500
committerGitHub <noreply@github.com>2020-12-11 19:45:22 -0500
commit062576f679a1bd5cb546bb8081dc97caefe7b51f (patch)
tree8a5252fd8012036a58ba82bf00d9592ab4880506 /test/functional/eval
parenta82bcf9d9cd445dffa5266bb5e2d27a9fcfbe55f (diff)
downloadrneovim-062576f679a1bd5cb546bb8081dc97caefe7b51f.tar.gz
rneovim-062576f679a1bd5cb546bb8081dc97caefe7b51f.tar.bz2
rneovim-062576f679a1bd5cb546bb8081dc97caefe7b51f.zip
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(). https://github.com/vim/vim/commit/0c1e3744ff0cd6c17af773046b876b428ff3dded
Diffstat (limited to 'test/functional/eval')
-rw-r--r--test/functional/eval/function_spec.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/eval/function_spec.lua b/test/functional/eval/function_spec.lua
index 776e760aaf..ce8850fcc2 100644
--- a/test/functional/eval/function_spec.lua
+++ b/test/functional/eval/function_spec.lua
@@ -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)