Mercurial > vim
diff src/testdir/test_eval_stuff.vim @ 20665:6ff992bf4c82 v8.2.0886
patch 8.2.0886: cannot use octal numbers in scriptversion 4
Commit: https://github.com/vim/vim/commit/c17e66c5c0acd5038f1eb3d7b3049b64bb6ea30b
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 2 21:38:22 2020 +0200
patch 8.2.0886: cannot use octal numbers in scriptversion 4
Problem: Cannot use octal numbers in scriptversion 4.
Solution: Add the "0o" notation. (Ken Takata, closes https://github.com/vim/vim/issues/5304)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 02 Jun 2020 21:45:03 +0200 |
parents | 3a94b984c9f9 |
children | a672feb8fc4f |
line wrap: on
line diff
--- a/src/testdir/test_eval_stuff.vim +++ b/src/testdir/test_eval_stuff.vim @@ -199,9 +199,12 @@ scriptversion 4 func Test_vvar_scriptversion4() call assert_true(has('vimscript-4')) call assert_equal(17, 017) + call assert_equal(15, 0o17) + call assert_equal(15, 0O17) call assert_equal(18, 018) call assert_equal(64, 0b1'00'00'00) call assert_equal(1048576, 0x10'00'00) + call assert_equal(32768, 0o10'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()) @@ -211,6 +214,8 @@ endfunc scriptversion 1 func Test_vvar_scriptversion1() call assert_equal(15, 017) + call assert_equal(15, 0o17) + call assert_equal(15, 0O17) call assert_equal(18, 018) endfunc