From 95f02cb587f9859fa558b59617b87a9808ec2cb9 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 26 Apr 2021 23:58:02 -0400 Subject: 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 --- src/nvim/testdir/test_eval_stuff.vim | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/nvim/testdir/test_eval_stuff.vim') 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() -- cgit