diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-04-26 23:58:02 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-04-27 09:21:36 -0400 |
| commit | 95f02cb587f9859fa558b59617b87a9808ec2cb9 (patch) | |
| tree | 92c115758c2c25ecf6944cca77e71e198955a997 /src/nvim/testdir | |
| parent | 25c0675fe343aa20e05c6cb26c2529d9dd9ac748 (diff) | |
| download | rneovim-95f02cb587f9859fa558b59617b87a9808ec2cb9.tar.gz rneovim-95f02cb587f9859fa558b59617b87a9808ec2cb9.tar.bz2 rneovim-95f02cb587f9859fa558b59617b87a9808ec2cb9.zip | |
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.
https://github.com/vim/vim/commit/57d5a01cb45d6edb16c3835a49b42d6d8fc0163e
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_eval_stuff.vim | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_eval_stuff.vim b/src/nvim/testdir/test_eval_stuff.vim index b667086482..4870b9a60a 100644 --- a/src/nvim/testdir/test_eval_stuff.vim +++ b/src/nvim/testdir/test_eval_stuff.vim @@ -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() |