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.
ea8dcf8346

:scriptversion is N/A.

Already added more quote tests in the port of v8.1.2036.
This commit is contained in:
Sean Dewar 2021-09-11 15:33:49 +01:00
parent b6d9e92805
commit 10018958d8
No known key found for this signature in database
GPG Key ID: 08CC2C83AD41B581

View File

@ -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'))