view src/testdir/test_version.vim @ 23193:3978f5b48934 v8.2.2142

patch 8.2.2142: memory leak when heredoc is not terminated Commit: https://github.com/vim/vim/commit/fffdf4754f4fd789c64596bdd9ea069725e63784 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 13 21:16:55 2020 +0100 patch 8.2.2142: memory leak when heredoc is not terminated Problem: Memory leak when heredoc is not terminated. Solution: Free heredoc_trimmed.
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Dec 2020 21:30:04 +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