view src/testdir/test_version.vim @ 34755:1a411f737239 v9.1.0255

patch 9.1.0255: Vim9: no indication of script nr in stack trace of classes Commit: https://github.com/vim/vim/commit/16cdfa69e07190674a8e85a48144a467472ca2f4 Author: Ernie Rael <errael@raelity.com> Date: Tue Apr 2 19:05:39 2024 +0200 patch 9.1.0255: Vim9: no indication of script nr in stack trace of classes Problem: Vim9: no indication of script nr in stack trace of classes Solution: Prefix the class name with the script name in the stack trace. (Ernie Rael) fixes: #14376 closes: #14390 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 02 Apr 2024 19:15:04 +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