0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

patch 8.2.0708: Vim9: constant expressions are not simplified

Problem:    Vim9: constant expressions are not simplified.
Solution:   Simplify string concatenation.
This commit is contained in:
Bram Moolenaar
2020-05-07 16:58:17 +02:00
parent f391586f3f
commit 61a8981699
4 changed files with 516 additions and 367 deletions

View File

@@ -485,8 +485,10 @@ def Test_expr5()
assert_equal(-6, g:alsoint - g:anint)
assert_equal('hello', 'hel' .. 'lo')
assert_equal('hello 123', 'hello ' ..
123)
" TODO: a line break here doesn't work
" assert_equal('hello 123', 'hello ' ..
" 123)
assert_equal('hello 123', 'hello ' .. 123)
assert_equal('123 hello', 123 .. ' hello')
assert_equal('123456', 123 .. 456)