Skip to content

Commit 9a1aaa3

Browse files
committed
Updated tests to add listw and listb commands.
1 parent cb0bb5b commit 9a1aaa3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

examples/autotest.lua

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,18 @@ local client = server:accept()
1313

1414
local commands = {
1515
'load auto/test.lua', -- load Lua script and start debugger
16-
'over', 'over', 'step', 'over', 'setb - 15', 'run',
16+
'over', 'over', 'step', 'over', 'setb auto/test.lua 15', 'run',
1717
'reload', -- reload the same script; breakpoints/watches still stay
1818
'run',
1919
{'eval tab.foo', 2, "this should fail"}, -- should display "not ok"
2020
{'eval tab.bar', 2, "this should work"}, -- should display "ok"
2121
'exec old_tab = tab', 'exec tab = 2', 'eval tab',
2222
'exec tab = old_tab', 'eval tab.foo', 'run',
23-
'eval tab.foo', 'delb auto\\test.lua 15', -- this removes breakpoint set with "setb - 15"
23+
'eval tab.foo',
24+
'listb',
25+
'delb auto\\test.lua 15', -- this removes breakpoint set with "setb - 15"
2426
'setw tab.foo == 32',
27+
'listw',
2528
'stack',
2629
'basedir foo', -- set `foo` as the current basedir
2730
'basedir',
@@ -31,7 +34,7 @@ local commands = {
3134

3235
local test = 0
3336
local curfile, curline = '', ''
34-
while #commands do
37+
while #commands > 0 do
3538
local command = table.remove(commands, 1)
3639
local expected
3740
if type(command) == 'table' then

0 commit comments

Comments
 (0)