view src/testdir/test_version.vim @ 27986:c724906134a3 v8.2.4518

patch 8.2.4518: the binary tag search feature is always enabled Commit: https://github.com/vim/vim/commit/655b734ee858e90dd8d28549b7704a71b25d30e7 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sun Mar 6 14:27:10 2022 +0000 patch 8.2.4518: the binary tag search feature is always enabled Problem: The binary tag search feature is always enabled. Solution: Remove the #ifdefs. Add a few more tests. (Yegappan Lakshmanan, closes #9893)
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Mar 2022 15:30:06 +0100
parents dfdd973cf0c9
children
line wrap: on
line source

" Test :version Ex command

so check.vim
so shared.vim

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

func Test_version_redirect()
  CheckNotGui
  CheckCanRunGui
  CheckUnix

  call RunVim([], [], '--clean -g --version >Xversion 2>&1')
  call assert_match('Features included', readfile('Xversion')->join())

  call delete('Xversion')
endfunc

" vim: shiftwidth=2 sts=2 expandtab