forked from colobot/colobot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow unit-testing try-catch(condition)
Our CBot unit tests run in single-step mode. Try-catch had a hack that prevented evaluation of catch conditions in single-step mode. I have removed the hack to enable unit-testing, but that caused a different problem: debugging code inside the body of try-catch became inconvenient because the player had to manually step over every catch expression after every single instruction in try body. I solved this by teaching CBotTry to step-over the catch conditions
- Loading branch information
1 parent
e00f99f
commit 7266cb9
Showing
2 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters