Assertion

Applies to: general, python, cpp

An assertion states that something must be true. If it is false, the program or test fails immediately.

assert mass > 0

See also: unit-test, exception