GotW #97 Solution: Assertions (Difficulty: 4/10)
Sutter's Mill
JANUARY 11, 2021
An assertion documents the expected state of specific program variables at the point where the assertion is written, in a testable way so that we can find program bugs — logic errors that have led to corrupted program state. Assertions are only about finding bugs, not doing program work. Bonus: [[assert: ?
Let's personalize your content