vim-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.
57d5a01cb4
This commit is contained in:
Jan Edmund Lazo
2021-04-26 23:58:02 -04:00
parent 25c0675fe3
commit 95f02cb587
4 changed files with 18 additions and 3 deletions

View File

@@ -120,10 +120,13 @@ func Test_skip_after_throw()
endtry
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 Test_curly_assignment()