xref: /vim-8.2.3635/src/testdir/test_version.vim (revision a7c4e747)
1" Test :version Ex command
2
3func Test_version()
4  " version should always return the same string.
5  let v1 = execute('version')
6  let v2 = execute('version')
7  call assert_equal(v1, v2)
8
9  call assert_match("^\n\nVIM - Vi IMproved .*", v1)
10endfunc
11
12" vim: shiftwidth=2 sts=2 expandtab
13