diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-15 21:12:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-15 21:12:22 +0200 |
commit | ea8dcf8346f488786023fd03ec1c013cda243040 (patch) | |
tree | 1ee31f0b95da559f2345583cdcca3e451746caad /src/testdir/test_functions.vim | |
parent | 9c658c9eacbd97e2c071f652a0155f71db94c0f3 (diff) |
patch 8.1.2043: not sufficient testing for quoted numbersv8.1.2043
Problem: Not sufficient testing for quoted numbers.
Solution: Add a few more test cases.
Diffstat (limited to 'src/testdir/test_functions.vim')
-rw-r--r-- | src/testdir/test_functions.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim index e782061886..37aba38f9c 100644 --- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -161,6 +161,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')) |