Mercurial > vim
view src/testdir/test_version.vim @ 28287:dc68c111cf7a v8.2.4669
patch 8.2.4669: in compiled code len('string') is not inlined
Commit: https://github.com/vim/vim/commit/58f331a05f5b7bdddf04e68b6e51a827fd0c43f0
Author: LemonBoy <thatlemon@gmail.com>
Date: Sat Apr 2 21:59:06 2022 +0100
patch 8.2.4669: in compiled code len('string') is not inlined
Problem: In compiled code len('string') is not inlined.
Solution: Compute the length at compile time if possible. (closes https://github.com/vim/vim/issues/10065)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 02 Apr 2022 23:00:05 +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