diff src/testdir/test_functions.vim @ 18096:609b351cb58f v8.1.2043

patch 8.1.2043: not sufficient testing for quoted numbers Commit: https://github.com/vim/vim/commit/ea8dcf8346f488786023fd03ec1c013cda243040 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 15 21:12:22 2019 +0200 patch 8.1.2043: not sufficient testing for quoted numbers Problem: Not sufficient testing for quoted numbers. Solution: Add a few more test cases.
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 Sep 2019 21:15:04 +0200
parents a6d218f99ff7
children 2416e1a887ca
line wrap: on
line diff
--- 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'))