view src/testdir/test_version.vim @ 23078:d01b011f91b9 v8.2.2085

patch 8.2.2085: Qt translation file is recognized as typescript Commit: https://github.com/vim/vim/commit/c0d670ce16d0e148b7d39ac354571b3d284a0b53 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 3 21:08:37 2020 +0100 patch 8.2.2085: Qt translation file is recognized as typescript Problem: Qt translation file is recognized as typescript. Solution: Check the first line for "<?xml". (closes https://github.com/vim/vim/issues/7418)
author Bram Moolenaar <Bram@vim.org>
date Thu, 03 Dec 2020 21:15:06 +0100
parents 08940efa6b4e
children dfdd973cf0c9
line wrap: on
line source

" 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