1" Test :version Ex command 2 3so check.vim 4so shared.vim 5 6func 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("^\n\nVIM - Vi IMproved .*", v1) 13endfunc 14 15func 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') 24endfunc 25 26" vim: shiftwidth=2 sts=2 expandtab 27