neovim

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

test_version.vim (570B)


      1 " Test :version Ex command
      2 
      3 so check.vim
      4 so shared.vim
      5 
      6 func Test_version()
      7  " version should always return the same string.
      8  let v1 = execute('version')
      9  let v2 = execute('version')
     10  call assert_equal(v1, v2)
     11 
     12  call assert_match("^\nNVIM v[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+.*", v1)
     13 endfunc
     14 
     15 func Test_version_redirect()
     16  CheckNotGui
     17  CheckCanRunGui
     18  CheckUnix
     19 
     20  call RunVim([], [], '--clean -g --version >Xversion 2>&1')
     21  call assert_match('Features included', readfile('Xversion')->join())
     22 
     23  call delete('Xversion')
     24 endfunc
     25 
     26 " vim: shiftwidth=2 sts=2 expandtab