Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow System.exit() calls in Interactive tests #22

Merged
merged 1 commit into from Oct 12, 2019

Conversation

thepieterdc
Copy link
Member

Students often use System.exit() in interactive programs as an alternative to simply writing return in the main-method, because the concept of functions/methods has not been taught yet. This PR allows System.exit() to be used in Interactive tests without throwing an AssertionError.

In the future, this behaviour might be extended to mimic ExpectedSystemExit-behaviour.

@thepieterdc thepieterdc changed the title Ignore System.exit() calls in Interactive tests Allow System.exit() calls in Interactive tests Oct 12, 2019
@ninewise ninewise merged commit 1ca3581 into master Oct 12, 2019
@ninewise ninewise deleted the fix/sys-exit-in-interactive branch October 12, 2019 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants