comparison src/testdir/test_vim9_script.vim @ 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 e1a8d2040bd7
children 0e1dfff4f294
comparison
equal deleted inserted replaced
20337:47939fb2e3a9 20338:ff4ae3f09307
133 b:newvar = 'new' 133 b:newvar = 'new'
134 assert_equal('new', b:newvar) 134 assert_equal('new', b:newvar)
135 assert_equal('yes', b:existing) 135 assert_equal('yes', b:existing)
136 b:existing = 'no' 136 b:existing = 'no'
137 assert_equal('no', b:existing) 137 assert_equal('no', b:existing)
138 b:existing ..= 'NO'
139 assert_equal('noNO', b:existing)
138 140
139 w:newvar = 'new' 141 w:newvar = 'new'
140 assert_equal('new', w:newvar) 142 assert_equal('new', w:newvar)
141 assert_equal('yes', w:existing) 143 assert_equal('yes', w:existing)
142 w:existing = 'no' 144 w:existing = 'no'
143 assert_equal('no', w:existing) 145 assert_equal('no', w:existing)
146 w:existing ..= 'NO'
147 assert_equal('noNO', w:existing)
144 148
145 t:newvar = 'new' 149 t:newvar = 'new'
146 assert_equal('new', t:newvar) 150 assert_equal('new', t:newvar)
147 assert_equal('yes', t:existing) 151 assert_equal('yes', t:existing)
148 t:existing = 'no' 152 t:existing = 'no'
149 assert_equal('no', t:existing) 153 assert_equal('no', t:existing)
154 t:existing ..= 'NO'
155 assert_equal('noNO', t:existing)
150 enddef 156 enddef
151 call Test_assignment_local_internal() 157 call Test_assignment_local_internal()
152 END 158 END
153 call CheckScriptSuccess(script_lines) 159 call CheckScriptSuccess(script_lines)
154 enddef 160 enddef