featured in Exercise 4 of the new "Introduction to OOP" course,
HUJI, Winter 2021-2022 Semester.
Written by Erel Debel.
========================================================================================
The tests are based on the ASCII art produced by my solution. If you think there might be a problem with the tests or the compared files, feel free to use the Issues section of this GitHub repo.
The tests can be configured and run by:
-
Put the test directory, testSrc, in your project directory (in the same directory as "src" and "out"):
-
Open the project in IntelliJ if you haven't yet.
-
Right-click the testSrc directory and choose
Mark Directory as -> Test Sources Root: -
Open the file BoardTest.java inside the testSrc directory.
-
On the first line' hover mouse over the red text and press Alt+Enter:
-
Then choose JUnit 5:
-
Right-click testSrc directory or press Ctrl+Shift+F10 to run all tests:
Good luck!
Erel