diff src/testdir/test_vim9_func.vim @ 22635:9e249065aeac v8.2.1866

patch 8.2.1866: Vim9: appending to pushed blob gives wrong result Commit: https://github.com/vim/vim/commit/66fa5fd54f550c0790d36c20124c49493b323bfa Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 19 20:21:03 2020 +0200 patch 8.2.1866: Vim9: appending to pushed blob gives wrong result Problem: Vim9: appending to pushed blob gives wrong result. Solution: Set ga_maxlen when copying a blob.
author Bram Moolenaar <Bram@vim.org>
date Mon, 19 Oct 2020 20:30:06 +0200
parents 6589dae9696c
children 4d4042683371
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -1790,6 +1790,12 @@ def Test_list_add()
   CheckDefExecFailure(lines, 'E1130:', 2)
 enddef
 
+def Test_blob_add()
+  var b: blob = 0z12
+  add(b, 0x34)
+  assert_equal(0z1234, b)
+enddef
+
 def SID(): number
   return expand('<SID>')
           ->matchstr('<SNR>\zs\d\+\ze_$')