Patch 8.1.2043 Problem: Not sufficient testing for quoted numbers. Solution: Add a few more test cases. Files: src/testdir/test_functions.vim, src/testdir/test_eval_stuff.vim
*** ../vim-8.1.2042/src/testdir/test_functions.vim 2019-09-15 14:32:49.556731456 +0200 --- src/testdir/test_functions.vim 2019-09-15 21:12:10.012973544 +0200 *************** *** 161,166 **** --- 161,167 ---- 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')) *** ../vim-8.1.2042/src/testdir/test_eval_stuff.vim 2019-09-15 17:49:06.516490668 +0200 --- src/testdir/test_eval_stuff.vim 2019-09-15 21:10:45.265204915 +0200 *************** *** 200,205 **** --- 200,208 ---- call assert_equal(64, 0b1'00'00'00) call assert_equal(1048576, 0x10'00'00) call assert_equal(1000000, 1'000'000) + call assert_equal("1234", execute("echo 1'234")->trim()) + call assert_equal('1 234', execute("echo 1''234")->trim()) + call assert_fails("echo 1'''234", 'E115:') endfunc scriptversion 1 *** ../vim-8.1.2042/src/version.c 2019-09-15 21:00:51.362604284 +0200 --- src/version.c 2019-09-15 21:09:49.189355077 +0200 *************** *** 759,760 **** --- 759,762 ---- { /* Add new patch number below this line */ + /**/ + 2043, /**/ -- Edison's greatest achievement came in 1879, when he invented the electric company. Edison's design was a brilliant adaptation of the simple electrical circuit: the electric company sends electricity through a wire to a customer, then immediately gets the electricity back through another wire /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/201909151913.x8FJD0Oq023541%40masaka.moolenaar.net.