0
0
mirror of https://github.com/vim/vim.git synced 2025-10-19 08:04:27 -04:00

patch 8.2.2388: no easy way to get the maximum or mininum number value

Problem:    No easy way to get the maximum or mininum number value.
Solution:   Add v:numbermax and v:numbermin.
This commit is contained in:
Bram Moolenaar
2021-01-21 21:42:31 +01:00
parent e32e516dfa
commit 57d5a01cb4
5 changed files with 47 additions and 30 deletions

View File

@@ -256,10 +256,13 @@ func Test_execute_cmd_with_null()
endif
endfunc
func Test_numbersize()
" This will fail on systems without 64 bit int support or when not configured
" correctly.
func Test_number_max_min_size()
" This will fail on systems without 64 bit number support or when not
" configured correctly.
call assert_equal(64, v:numbersize)
call assert_true(v:numbermin < -9999999)
call assert_true(v:numbermax > 9999999)
endfunc
func Assert_reg(name, type, value, valuestr, expr, exprstr)