diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-09-11 15:33:49 +0100 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-09-11 15:35:55 +0100 |
commit | 10018958d860780c3766f4e785710201c07f3684 (patch) | |
tree | 57fc0ec11435c93c1c91cd034b4da3363a12f041 /src | |
parent | b6d9e92805b4cf37680be61c1c22ddf7a061d649 (diff) | |
download | rneovim-10018958d860780c3766f4e785710201c07f3684.tar.gz rneovim-10018958d860780c3766f4e785710201c07f3684.tar.bz2 rneovim-10018958d860780c3766f4e785710201c07f3684.zip |
vim-patch:8.1.2043: not sufficient testing for quoted numbers
Problem: Not sufficient testing for quoted numbers.
Solution: Add a few more test cases.
https://github.com/vim/vim/commit/ea8dcf8346f488786023fd03ec1c013cda243040
:scriptversion is N/A.
Already added more quote tests in the port of v8.1.2036.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_functions.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim index a78e617572..2e838f73b6 100644 --- a/src/nvim/testdir/test_functions.vim +++ b/src/nvim/testdir/test_functions.vim @@ -165,6 +165,7 @@ func Test_str2nr() call assert_equal(256, str2nr("1'0000'0000", 2, 1)) call assert_equal(262144, str2nr("1'000'000", 8, 1)) call assert_equal(1000000, str2nr("1'000'000", 10, 1)) + call assert_equal(1000, str2nr("1'000''000", 10, 1)) call assert_equal(65536, str2nr("1'00'00", 16, 1)) call assert_equal(0, str2nr('0x10')) |