Exercise: The Flaky Data Parser
Explore how to harden a legacy C++ data parser by writing tests that trigger out-of-bounds errors, adding assertions for bounds safety, and configuring debug builds with compiler symbols. This lesson equips you to detect and debug segmentation faults effectively using Catch2 tests and Makefile build targets.
We'll cover the following...
We'll cover the following...
Problem statement
You have inherited a legacy function parseData ...