summaryrefslogtreecommitdiff
path: root/src/testdir/test_version.vim
blob: a578f97de40ac7611a756ae6ed713bfd4a90c5b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
" 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\nVIM - Vi IMproved .*", v1)
endfunc

" vim: shiftwidth=2 sts=2 expandtab