0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

patch 8.2.2262: Vim9: converting bool to string prefixes v:

Problem:    Vim9: converting bool to string prefixes v:.
Solution:   Do not use the v: prefix.
This commit is contained in:
Bram Moolenaar
2021-01-01 15:11:04 +01:00
parent d5ea8f08f7
commit a8b8af19e4
4 changed files with 13 additions and 6 deletions

View File

@@ -1056,14 +1056,19 @@ def Test_expr5()
assert_equal('123 hello', 123 .. ' hello')
assert_equal('123456', 123 .. 456)
assert_equal('av:true', 'a' .. true)
assert_equal('av:false', 'a' .. false)
assert_equal('atrue', 'a' .. true)
assert_equal('afalse', 'a' .. false)
assert_equal('av:null', 'a' .. v:null)
assert_equal('av:none', 'a' .. v:none)
if has('float')
assert_equal('a0.123', 'a' .. 0.123)
endif
set digraph
assert_equal('val: true', 'val: ' .. &digraph)
set nodigraph
assert_equal('val: false', 'val: ' .. &digraph)
assert_equal([1, 2, 3, 4], [1, 2] + [3, 4])
assert_equal(0z11223344, 0z1122 + 0z3344)
assert_equal(0z112201ab, 0z1122