patch 8.2.3898: Vim9: not sufficient testing for variable initialization
Problem: Vim9: not sufficient testing for variable initialization.
Solution: Add another test case.
diff --git a/src/testdir/test_vim9_disassemble.vim b/src/testdir/test_vim9_disassemble.vim
index 3b8e12d..55a4305 100644
--- a/src/testdir/test_vim9_disassemble.vim
+++ b/src/testdir/test_vim9_disassemble.vim
@@ -1802,6 +1802,24 @@
assert_equal(true, InvertBool())
enddef
+def AutoInit()
+ var t: number
+ t = 1
+ t = 0
+enddef
+
+def Test_disassemble_auto_init()
+ var instr = execute('disassemble AutoInit')
+ assert_match('AutoInit\_s*' ..
+ 'var t: number\_s*' ..
+ 't = 1\_s*' ..
+ '\d STORE 1 in $0\_s*' ..
+ 't = 0\_s*' ..
+ '\d STORE 0 in $0\_s*' ..
+ '\d\+ RETURN void',
+ instr)
+enddef
+
def Test_disassemble_compare()
var cases = [
['true == isFalse', 'COMPAREBOOL =='],
diff --git a/src/version.c b/src/version.c
index adb3722..e41dcb1 100644
--- a/src/version.c
+++ b/src/version.c
@@ -750,6 +750,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3898,
+/**/
3897,
/**/
3896,