]> granicus.if.org Git - vim/commitdiff
patch 8.2.0724: Vim9: appending to buffer/window/tab variable not tested v8.2.0724
authorBram Moolenaar <Bram@vim.org>
Sat, 9 May 2020 16:44:56 +0000 (18:44 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 9 May 2020 16:44:56 +0000 (18:44 +0200)
Problem:    Vim9: appending to buffer/window/tab variable not tested
Solution:   Add a test.

src/testdir/test_vim9_script.vim
src/version.c

index 7768eb082b161ac3aa5604da321aa3f753e16ce2..564e51d0afffb0bb0a10acf63874b76e8098f78b 100644 (file)
@@ -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
index 3084d9b7ceb9dcd0e057ebd58a02917a4c312693..38da744e46fc21510ac03a7c46414b0e6a0938cd 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    724,
 /**/
     723,
 /**/