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