Unit

A unit problem expects test cases to be one or more function calls. The stdout of the function call(s) will then be compared with the provided expected answer.

The expected answers are specified within test cases. For each test case, you can specify:

  1. Function Call (Required)

  2. Expected Answer(Required)

  3. Comment (Optional)

Function Call

In the example from Figure 1. we expect the student to define a Painting class and implement a addShape and draw method. Here we are testing this expected functionality.

Answer

In the example from Figure 1. we expect the lines of code provided in Function Call to output Drawing circle(10, 20, 30)

Comment

This field is a way for students to receive feedback on a particular test case.

Last updated