mirror of
https://github.com/neovim/neovim.git
synced 2026-05-19 19:41:16 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user