comparison src/testdir/test_lua.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 483a8d6cf8b0
children e391590249a1
comparison
equal deleted inserted replaced
28170:e882a67c742e 28171:b4c111ea83b1
1206 call term_sendkeys(buf, "print(foo)\n") 1206 call term_sendkeys(buf, "print(foo)\n")
1207 call WaitForAssert({-> assert_equal('lua_debug> print(foo)', term_getline(buf, 8))}) 1207 call WaitForAssert({-> assert_equal('lua_debug> print(foo)', term_getline(buf, 8))})
1208 call WaitForAssert({-> assert_equal('42', term_getline(buf, 9))}) 1208 call WaitForAssert({-> assert_equal('42', term_getline(buf, 9))})
1209 call WaitForAssert({-> assert_equal('lua_debug> ', term_getline(buf, 10))}) 1209 call WaitForAssert({-> assert_equal('lua_debug> ', term_getline(buf, 10))})
1210 1210
1211 call term_sendkeys(buf, "-\n")
1212 call WaitForAssert({-> assert_equal("(debug command):1: unexpected symbol near '-'",
1213 \ term_getline(buf, 9))})
1214 call WaitForAssert({-> assert_equal('lua_debug> ', term_getline(buf, 10))})
1215
1211 call term_sendkeys(buf, "cont\n") 1216 call term_sendkeys(buf, "cont\n")
1212 call WaitForAssert({-> assert_match(' All$', term_getline(buf, 10))}) 1217 call WaitForAssert({-> assert_match(' All$', term_getline(buf, 10))})
1213 1218
1219 " Entering an empty line also exits the debugger.
1220 call term_sendkeys(buf, ":lua debug.debug()\n")
1221 call WaitForAssert({-> assert_equal('lua_debug> ', term_getline(buf, 10))})
1222 call term_sendkeys(buf, "\n")
1223 call WaitForAssert({-> assert_match(' All$', term_getline(buf, 10))})
1224
1214 call StopVimInTerminal(buf) 1225 call StopVimInTerminal(buf)
1215 call delete('XtestLuaDebug.vim')
1216 endfunc 1226 endfunc
1217 1227
1218 " vim: shiftwidth=2 sts=2 expandtab 1228 " vim: shiftwidth=2 sts=2 expandtab