CS/SWE 332 Assignment 9
Fall 2020


Goal: Contract for clone()

Submit via Blackboard.
Assignment:

The clone() implementation from in-class exercise 15 has a bug. Show that with a (failing) JUnit test case. As discussed in class, you will need a subclass of IntSet to implement your failing JUnit test.

Then fix the problem, and show that your JUnit test now passes.

As in prior assignments, your deliverable is a story. Your story should describe exactly what the "bug" is, which part(s) of the contract is(are) broken, why the test case fails on the original code, and why the test case passes on the repaired code. Document enough (via screenshots, etc.) to demonstrate that you actually did everything in the assignment.

Part of the grading on the story is clarity. That is, if the GTA (or I) struggle to understand what you did, you'll receive less than full credit.