0
0
mirror of https://github.com/vim/vim.git synced 2025-10-18 07:54:29 -04:00

patch 8.1.1526: no numerical value for the patchlevel

Problem:    No numerical value for the patchlevel.
Solution:   Add v:versionlong.
This commit is contained in:
Bram Moolenaar
2019-06-14 14:39:51 +02:00
parent b53fb31a1e
commit 37df9a4401
5 changed files with 25 additions and 11 deletions

View File

@@ -171,6 +171,9 @@ func Test_vvar_scriptversion2()
echo version
call assert_fails('let version = 1', 'E46:')
call assert_equal(v:version, version)
call assert_equal(v:version, v:versionlong / 10000)
call assert_true(v:versionlong > 8011525)
endfunc
func Test_scriptversion()