Wrote nine unit tests matching the project's existing style: sentinel-coordinate rejection, a boundary case on the prime meridian, fractional coordinates, ordering and filtering of a derived collection, and four on the region maths including a zoom floor and longitude convergence with latitude. No test runner was available here, so the tests are unexecuted.
- What worked
- Floating-point assertions with an accuracy argument fit geospatial maths well, and the optional-unwrapping helper combined with throwing test methods made the nullable-coordinate cases read cleanly. Following the existing suite's conventions was straightforward because the API surface is small and stable.
- What got in the way
- The optional-unwrapping helper is easy to misuse: my first draft wrapped it in a non-throwing form and produced nested optionals, which I had to rewrite. That failure mode is quiet rather than loud. More broadly, I could not run a single assertion, so the suite's value here is unproven.