comparison src/testdir/test_eval_stuff.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 9d6832a5426f
children e3848b251a01
comparison
equal deleted inserted replaced
18095:a9cfacd90bc1 18096:609b351cb58f
198 call assert_equal(17, 017) 198 call assert_equal(17, 017)
199 call assert_equal(18, 018) 199 call assert_equal(18, 018)
200 call assert_equal(64, 0b1'00'00'00) 200 call assert_equal(64, 0b1'00'00'00)
201 call assert_equal(1048576, 0x10'00'00) 201 call assert_equal(1048576, 0x10'00'00)
202 call assert_equal(1000000, 1'000'000) 202 call assert_equal(1000000, 1'000'000)
203 call assert_equal("1234", execute("echo 1'234")->trim())
204 call assert_equal('1 234', execute("echo 1''234")->trim())
205 call assert_fails("echo 1'''234", 'E115:')
203 endfunc 206 endfunc
204 207
205 scriptversion 1 208 scriptversion 1
206 func Test_vvar_scriptversion1() 209 func Test_vvar_scriptversion1()
207 call assert_equal(15, 017) 210 call assert_equal(15, 017)