view src/testdir/test_version.vim @ 30027:7e787f94852b v9.0.0351

patch 9.0.0351: message window may obscure the command line Commit: https://github.com/vim/vim/commit/b5b4f61cf192324379b6a8c4f7ed83a13f0e3bc6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 1 16:43:17 2022 +0100 patch 9.0.0351: message window may obscure the command line Problem: Message window may obscure the command line. Solution: Reduce the maximum height of the message window.
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Sep 2022 17:45:03 +0200
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