mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 7.4.1660
Problem: has('patch-7.4.1') doesn't work. Solution: Fix off-by-one error. (Thinca)
This commit is contained in:
@@ -21,3 +21,18 @@ func Test_equal()
|
||||
|
||||
call assert_fails('echo base.method > instance.method')
|
||||
endfunc
|
||||
|
||||
func Test_version()
|
||||
call assert_true(has('patch-7.4.001'))
|
||||
call assert_true(has('patch-7.4.01'))
|
||||
call assert_true(has('patch-7.4.1'))
|
||||
call assert_true(has('patch-6.9.999'))
|
||||
call assert_true(has('patch-7.1.999'))
|
||||
call assert_true(has('patch-7.4.123'))
|
||||
|
||||
call assert_false(has('patch-7'))
|
||||
call assert_false(has('patch-7.4'))
|
||||
call assert_false(has('patch-7.4.'))
|
||||
call assert_false(has('patch-9.1.0'))
|
||||
call assert_false(has('patch-9.9.1'))
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user