Skip to content
public-library›Rules›Testing›Cover empty inputs and boundaries

Cover empty inputs and boundaries

MEDIUM#testing Sign in to star Cover empty inputs and boundaries, 0 stars

Sign in to star rules

Star this rule if you find it useful.

Test each input the contract treats differently, and assert the intended result for each one. These inputs include empty and single-item collections, first and last positions, exact thresholds, and an item related to itself.

In the full rule