Testing Basics

Write small checks to prevent regressions.

Lesson 4

Concept

Start with simple unit-style tests for pure functions. Arrange-Act-Assert: set inputs, call the code, check outputs. Automate and run often.

Try it

Short Answer

Sketch a test for your average(list) function.