summaryrefslogtreecommitdiff
path: root/src/testdir/test_lua.vim
diff options
context:
space:
mode:
authorDominique Pelle <dominique.pelle@gmail.com>2022-03-22 21:14:55 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-22 21:14:55 +0000
commit81b573d7e55bd48988f298ce8e652d902e9bdeba (patch)
tree9f6ed23678e2ae022d77245f1d0b2ff6a3dc81c6 /src/testdir/test_lua.vim
parentfe154990c1c57fac6d5a4b1bfb682e27adb4eb8c (diff)
downloadvim-git-81b573d7e55bd48988f298ce8e652d902e9bdeba.tar.gz
patch 8.2.4611: typos in tests; one lua line not covered by testv8.2.4611
Problem: Typos in tests; one lua line not covered by test. Solution: Fix typos. Add test case. (Dominique Pellé, closes #9994)
Diffstat (limited to 'src/testdir/test_lua.vim')
-rw-r--r--src/testdir/test_lua.vim12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/testdir/test_lua.vim b/src/testdir/test_lua.vim
index 1f2df1094..e45da6afc 100644
--- a/src/testdir/test_lua.vim
+++ b/src/testdir/test_lua.vim
@@ -1208,11 +1208,21 @@ func Test_lua_debug()
call WaitForAssert({-> assert_equal('42', term_getline(buf, 9))})
call WaitForAssert({-> assert_equal('lua_debug> ', term_getline(buf, 10))})
+ call term_sendkeys(buf, "-\n")
+ call WaitForAssert({-> assert_equal("(debug command):1: unexpected symbol near '-'",
+ \ term_getline(buf, 9))})
+ call WaitForAssert({-> assert_equal('lua_debug> ', term_getline(buf, 10))})
+
call term_sendkeys(buf, "cont\n")
call WaitForAssert({-> assert_match(' All$', term_getline(buf, 10))})
+ " Entering an empty line also exits the debugger.
+ call term_sendkeys(buf, ":lua debug.debug()\n")
+ call WaitForAssert({-> assert_equal('lua_debug> ', term_getline(buf, 10))})
+ call term_sendkeys(buf, "\n")
+ call WaitForAssert({-> assert_match(' All$', term_getline(buf, 10))})
+
call StopVimInTerminal(buf)
- call delete('XtestLuaDebug.vim')
endfunc
" vim: shiftwidth=2 sts=2 expandtab