summaryrefslogtreecommitdiff
path: root/src/testdir/test_vim9_disassemble.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-18 19:53:28 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-18 19:53:28 +0200
commita26b9700d73ebccd6c5459d0d66032a4249f6b72 (patch)
tree2b7c7a0dfe64a8c707f36ce107dab9660adca200 /src/testdir/test_vim9_disassemble.vim
parentb6fb0516ec862a18fdffe06c9400d507a7193835 (diff)
downloadvim-git-a26b9700d73ebccd6c5459d0d66032a4249f6b72.tar.gz
patch 8.2.0595: Vim9: not all commands using ends_excmd() testedv8.2.0595
Problem: Vim9: not all commands using ends_excmd() tested. Solution: Find # comment after regular commands. Add more tests. Report error for where it was caused.
Diffstat (limited to 'src/testdir/test_vim9_disassemble.vim')
-rw-r--r--src/testdir/test_vim9_disassemble.vim14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/testdir/test_vim9_disassemble.vim b/src/testdir/test_vim9_disassemble.vim
index f6de6858e..985c8ca4e 100644
--- a/src/testdir/test_vim9_disassemble.vim
+++ b/src/testdir/test_vim9_disassemble.vim
@@ -251,8 +251,8 @@ def Test_disassemble_pcall()
enddef
-def FuncWithForwardCall(): string
- return DefinedLater("yes")
+def s:FuncWithForwardCall(): string
+ return g:DefinedLater("yes")
enddef
def DefinedLater(arg: string): string
@@ -260,11 +260,11 @@ def DefinedLater(arg: string): string
enddef
def Test_disassemble_update_instr()
- let res = execute('disass FuncWithForwardCall')
+ let res = execute('disass s:FuncWithForwardCall')
assert_match('FuncWithForwardCall.*' ..
- 'return DefinedLater("yes").*' ..
+ 'return g:DefinedLater("yes").*' ..
'\d PUSHS "yes".*' ..
- '\d UCALL DefinedLater(argc 1).*' ..
+ '\d UCALL g:DefinedLater(argc 1).*' ..
'\d CHECKTYPE string stack\[-1].*' ..
'\d RETURN.*',
res)
@@ -272,9 +272,9 @@ def Test_disassemble_update_instr()
" Calling the function will change UCALL into the faster DCALL
assert_equal('yes', FuncWithForwardCall())
- res = execute('disass FuncWithForwardCall')
+ res = execute('disass s:FuncWithForwardCall')
assert_match('FuncWithForwardCall.*' ..
- 'return DefinedLater("yes").*' ..
+ 'return g:DefinedLater("yes").*' ..
'\d PUSHS "yes".*' ..
'\d DCALL DefinedLater(argc 1).*' ..
'\d CHECKTYPE string stack\[-1].*' ..