A compiled collection of JUnit testers I made to help you test out your code for the Winter 2025 COMP 251 assignments.
Keep in mind that these are not the official test cases used for evaluation by the teaching staff when grading your assignments, but instead is a collection of unit tests that I made to help you troubleshoot your own code in case you're stuck somewhere and can't find what the bug in your code is. Use this as a guide to help you succeed in your coding journey in COMP 251.
- Question 1 - Chaining and Open_Addressing
- Question 2a - DisjointSetsA
- Question 2b - DisjointSetsB
- Question 3 - A1_Q3
- Question 1 - Complete Search
- Question 2 - Divide and Conquer
- Question 3 - Dynamic Programming
- Question 4 - Greedy Algorithm
- Java 8 or newer
- JUnit 5.0.0 or newer
- A Java IDE (Any of IntelliJ, Eclipse, VSCode, etc.)
You may have your own package system in your Java Project. If you do, make sure that you drag
and drop these files in the same package as your assignment code for each question (If you use
the regular build system) or the corresponding test/java directory to your assignment code
if you use the Maven build system.
These testers are made by myself, and thus passing all these tests does NOT guarantee that you will pass all the tests on Ed Lessons! These tests are just extra cases for you to check that your code works as intended.
Also, note that these tests may not be perfect, and thus, though unlikely, they may have some minor bugs
If you find any bugs (i.e. tests fail when you are 100% sure they should not be failing) please do not hesitate and feel free to reach out to me so that I can administer a quick fix.