mirror of
https://github.com/vim/vim.git
synced 2025-10-18 07:54:29 -04:00
patch 8.2.0724: Vim9: appending to buffer/window/tab variable not tested
Problem: Vim9: appending to buffer/window/tab variable not tested Solution: Add a test.
This commit is contained in:
@@ -135,18 +135,24 @@ def Test_assignment_local()
|
||||
assert_equal('yes', b:existing)
|
||||
b:existing = 'no'
|
||||
assert_equal('no', b:existing)
|
||||
b:existing ..= 'NO'
|
||||
assert_equal('noNO', b:existing)
|
||||
|
||||
w:newvar = 'new'
|
||||
assert_equal('new', w:newvar)
|
||||
assert_equal('yes', w:existing)
|
||||
w:existing = 'no'
|
||||
assert_equal('no', w:existing)
|
||||
w:existing ..= 'NO'
|
||||
assert_equal('noNO', w:existing)
|
||||
|
||||
t:newvar = 'new'
|
||||
assert_equal('new', t:newvar)
|
||||
assert_equal('yes', t:existing)
|
||||
t:existing = 'no'
|
||||
assert_equal('no', t:existing)
|
||||
t:existing ..= 'NO'
|
||||
assert_equal('noNO', t:existing)
|
||||
enddef
|
||||
call Test_assignment_local_internal()
|
||||
END
|
||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
724,
|
||||
/**/
|
||||
723,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user