Skip to content

Commit 7fed621

Browse files
st0012ko1
authored andcommitted
Add test for DAP's command execution through evaluate request
1 parent acb629a commit 7fed621

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/protocol/eval_test.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ def test_eval_evaluates_arithmetic_expressions
2323
req_terminate_debuggee
2424
end
2525
end
26+
27+
def test_eval_executes_commands
28+
run_protocol_scenario PROGRAM, cdp: false do
29+
req_add_breakpoint 3
30+
req_continue
31+
assert_repl_result({value: '', type: nil}, ",b 5 ;; b 6")
32+
req_continue
33+
assert_line_num 5
34+
req_continue
35+
assert_line_num 6
36+
req_terminate_debuggee
37+
end
38+
end
2639
end
2740

2841
class EvaluateOnSomeFramesTest < ProtocolTestCase

0 commit comments

Comments
 (0)