LinqLover / SimulationStudio

A growing suite of applications and tools using code simulation in Squeak/Smalltalk
9 stars 1 forks source link

Fix error in SimulationContext >> #runUntilErrorOrReturnFrom: #11

Closed LinqLover closed 3 years ago

LinqLover commented 3 years ago

Confusingly, #caseOf:otherwise: does not check the receiver and the passed associations' keys' block values for identity but for equality. This caused the simulation loop to stop too early when certain #ensure: contexts were reached. The rest of the simulation was then run in the #stepToCallee loop where every UnhandledError would be resumed without aborting the simulation.

Closes #10.