mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
13 lines
303 B
VimL
13 lines
303 B
VimL
|
" Test :version Ex command
|
||
|
|
||
|
func Test_version()
|
||
|
" version should always return the same string.
|
||
|
let v1 = execute('version')
|
||
|
let v2 = execute('version')
|
||
|
call assert_equal(v1, v2)
|
||
|
|
||
|
call assert_match("^\n\nNVIM v[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+.*", v1)
|
||
|
endfunc
|
||
|
|
||
|
" vim: shiftwidth=2 sts=2 expandtab
|