Checkpoint: Robustness
beginner15 min readLesson 51 of 204
One graded challenge: throw exactly where the contract breaks, and survive the boundary tests.
Checkpoint — robustness. Pass the graded challenge below to finish the module.
The functions must throw std::invalid_argument/std::out_of_range on exactly the documented bad inputs — the tests use CHECK_THROWS for those and normal checks for the good paths.