robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Justin M. KeyesMerge #40865 from justinmk/fixcif907614088

master
569 B21 linesraw
1-- Tests for misc Vimscript |vimscript-functions|.
2--
3-- If a function is non-trivial, consider moving its spec to:
4--    test/functional/vimscript/<funcname>_spec.lua
5--
6-- Core "eval" tests live in eval_spec.lua.
7
8local t = require('test.testutil')
9local n = require('test.functional.testnvim')()
10
11local it, before_each = t.it, t.before_each
12local clear = n.clear
13local eval = n.eval
14local matches = t.matches
15local is_os = t.is_os
16
17before_each(clear)
18
19it('windowsversion()', function()
20  matches(is_os('win') and '^%d+%.%d+$' or '^$', eval('windowsversion()'))
21end)