Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/Sindarin-Tests/SindarinDebuggerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,10 @@ SindarinDebuggerTest >> testIsExecutionFinished [
scdbg := SindarinDebugger debug: [ self methodWithTwoAssignments ].
self deny: scdbg isExecutionFinished.

[ scdbg isExecutionFinished ] whileFalse: [ scdbg stepOver ].

self
should: [ [ scdbg isExecutionFinished ] whileFalse: [ scdbg stepOver ] ]
raise: DebuggedExecutionIsFinished.

self assert: scdbg currentProcess isTerminated
]

Expand Down Expand Up @@ -1787,11 +1789,13 @@ SindarinDebuggerTest >> testStepOver [

{ #category : #tests }
SindarinDebuggerTest >> testStepOverFinishedExecution [
"This test tries to show is that using Sindarin on a block, it should raise an exception if you continue stepping over that code in your Sindarin script while the execution of that code is already finished (nothing more to step)"

|scdbg|
scdbg := SindarinDebugger debug: [ self methodWithImplicitReturn ].

"Stepping until the implicit return of #methodWithImplicitReturn"
scdbg stepOver: 3.
scdbg stepOver: 2.
self should: [scdbg stepOver] raise: DebuggedExecutionIsFinished
]

Expand Down