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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user