Closed Kalekdan closed 5 years ago
Looks good to me. Just one thing though.
Maybe we make another Exception class for general errors, or we leverage the already existing one? Maybe this could also be a way to stop using System.err.println
? I don't know if it would work here or not. Just an idea.
Merge when ready.
Name: Tests for error messages About: Redirected all calls to System.out.err through a new function which will store the latest error message. This allows for testing that a specific error message was thrown
Is your PR related to a feature request or Bug report? If applicable, please list feature request number or bug report ID.
Describe your PR A clear and concise description of what your pull request is changing or adding.
Describe intended use A clear and concise description of the intended use of the feature. Along with example code.
Is it in the form of a library