Exercise code due to Dale Skrien (2009), Object-Oriented Design Using Java, exercise 4.30.
JUnit tests developed with ChatGPT. Prompts:
- Please write JUnit4 tests using org.junit.jupiter.api for the following function: ...
- Please generate another test for empty lists.
- Generate a test testSpecialArrayListEquals_duplicateElements_true
- Please write another test where the lists are the same except one element is different
- Generate tests where the lists are different lengths
To run tests in IntelliJ IDEA:
- Under File > Project Structure > Libraries, use Maven to add org.junit.jupiter.
- Add a JUnit run configuration running STest.