Mercurial > vim
changeset 20338:ff4ae3f09307
patch 8.2.0724: Vim9: appending to buffer/window/tab variable not tested
Commit: https://github.com/vim/vim/commit/396f3138ca83ce844679143861f544070683d479
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 9 18:44:56 2020 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 09 May 2020 18:45:04 +0200 |
parents | 47939fb2e3a9 |
children | 7587d892c00c |
files | src/testdir/test_vim9_script.vim src/version.c |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -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