Lab: Unit testing

Assigned
Monday, 12 October 2026
Writeup due
Wednesday, 14 October 2026
Summary
In the laboratory, you will explore the ways in which small tests can help you develop and update code. You will also familiarize yourself with Scamper’s unit testing library. You will also have the opportunity to think more broadly about testing.

Notation

(test-case DESCRIPTION EQUALITY-TEST? EXPECTED THUNK) - Execute the given THUNK (a zero parameter procedure), compare the result to EXPECTED, and report on the result.

Preparation

a. If you have not done so already, you may want to open a separate tab or window in your browser for the various associated readings.

b. Introduce yourself to your partner. Describe your strengths and approaches to work.

c. The person closer to the board is Side A. The other is Side B.

d. Load the lab.

e. Enter your names, the date, and the section info at the top of the lab.

f. Begin the lab.