1
0
forked from aniani/vim

patch 9.0.0010: returning 0 for has('patch-9.0.0') is inconsistent

Problem:    Returning 0 for has('patch-9.0.0') is inconsistent.
Solution:   Make it return 1. (closes #10640)
This commit is contained in:
Bram Moolenaar
2022-06-30 11:03:39 +01:00
parent 083692d598
commit b0375d466e
2 changed files with 8 additions and 1 deletions

View File

@@ -40,6 +40,9 @@ func Test_has()
" Will we ever have patch 9999?
let ver = 'patch-' .. v:version / 100 .. '.' .. v:version % 100 .. '.9999'
call assert_equal(0, has(ver))
" There actually isn't a patch 9.0.0, but this is more consistent.
call assert_equal(1, has('patch-9.0.0'))
endfunc
func Test_empty()