mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.0283: Vim9: failing to load script var not tested
Problem: Vim9: failing to load script var not tested. Solution: Add more tests. Fix using s: in old script.
This commit is contained in:
@@ -61,10 +61,10 @@ def Test_assignment()
|
||||
assert_equal('foobar', $ENVVAR)
|
||||
$ENVVAR = ''
|
||||
|
||||
appendToMe ..= 'yyy'
|
||||
assert_equal('xxxyyy', appendToMe)
|
||||
addToMe += 222
|
||||
assert_equal(333, addToMe)
|
||||
s:appendToMe ..= 'yyy'
|
||||
assert_equal('xxxyyy', s:appendToMe)
|
||||
s:addToMe += 222
|
||||
assert_equal(333, s:addToMe)
|
||||
enddef
|
||||
|
||||
func Test_assignment_failure()
|
||||
|
Reference in New Issue
Block a user