neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

functions_spec.lua (525B)


      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 
      8 local t = require('test.testutil')
      9 local n = require('test.functional.testnvim')()
     10 
     11 local clear = n.clear
     12 local eval = n.eval
     13 local matches = t.matches
     14 local is_os = t.is_os
     15 
     16 before_each(clear)
     17 
     18 it('windowsversion()', function()
     19  matches(is_os('win') and '^%d+%.%d+$' or '^$', eval('windowsversion()'))
     20 end)