Mercurial > vim
comparison src/testdir/test_vim9_disassemble.vim @ 28171:b4c111ea83b1 v8.2.4611
patch 8.2.4611: typos in tests; one lua line not covered by test
Commit: https://github.com/vim/vim/commit/81b573d7e55bd48988f298ce8e652d902e9bdeba
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Tue Mar 22 21:14:55 2022 +0000
patch 8.2.4611: typos in tests; one lua line not covered by test
Problem: Typos in tests; one lua line not covered by test.
Solution: Fix typos. Add test case. (Dominique Pell?, closes https://github.com/vim/vim/issues/9994)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 22 Mar 2022 22:30:03 +0100 |
parents | 1012048eed26 |
children | 662d2d5db9a6 |
comparison
equal
deleted
inserted
replaced
28170:e882a67c742e | 28171:b4c111ea83b1 |
---|---|
2002 echo g:flag ?? "yes" | 2002 echo g:flag ?? "yes" |
2003 echo [] ?? "empty list" | 2003 echo [] ?? "empty list" |
2004 echo "" ?? "empty string" | 2004 echo "" ?? "empty string" |
2005 enddef | 2005 enddef |
2006 | 2006 |
2007 def Test_dsassemble_falsy_op() | 2007 def Test_disassemble_falsy_op() |
2008 var res = execute('disass s:FalsyOp') | 2008 var res = execute('disass s:FalsyOp') |
2009 assert_match('\<SNR>\d*_FalsyOp\_s*' .. | 2009 assert_match('\<SNR>\d*_FalsyOp\_s*' .. |
2010 'echo g:flag ?? "yes"\_s*' .. | 2010 'echo g:flag ?? "yes"\_s*' .. |
2011 '0 LOADG g:flag\_s*' .. | 2011 '0 LOADG g:flag\_s*' .. |
2012 '1 JUMP_AND_KEEP_IF_TRUE -> 3\_s*' .. | 2012 '1 JUMP_AND_KEEP_IF_TRUE -> 3\_s*' .. |