This is the submission by Group 5 for CW 2 of the COMP0012 2024-25 module. Please read the report pdf for full details of our implementation.
To add test cases we did the following:
- Created .java test files in the src/comp0012/target folder (this is auto compiled to a .class file in optimised/classes/comp0012/target by the build file during tests).
- Created corresponding unit test .java files in the test/comp0012/target folder.
- Updated the build.xml file to include the generation of the .class file for the .java file we added in 1).
To build/run tests (in the root directory):
- First run "ant clean"
- Then optionally run "ant generate" to see if the tests .java source files are being correctly compiled.
- Lastly, run "ant test" to run the unit tests and check the correctness of the optimizations.