Mercurial > vim
diff src/testdir/test_vim9_script.vim @ 19451:b26e96f7c12f v8.2.0283
patch 8.2.0283: Vim9: failing to load script var not tested
Commit: https://github.com/vim/vim/commit/fd1823e0b783c31a5022c7a4d31c34d84ff0a744
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 19 20:23:11 2020 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 19 Feb 2020 20:30:04 +0100 |
parents | f8408ba21982 |
children | 655631882288 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -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()