Skip to content

Make Sprint 2 exercises throw on bad input, matching the Sprint 1 prep - #1461

Merged
Liam310 merged 1 commit into
mainfrom
sprint-2-error-handling
Sep 7, 2026
Merged

Make Sprint 2 exercises throw on bad input, matching the Sprint 1 prep#1461
Liam310 merged 1 commit into
mainfrom
sprint-2-error-handling

Conversation

@abdishakoor-dev

Copy link
Copy Markdown
Contributor

Follow-up to #1460. The Sprint 1 prep teaches that a function should throw when it can't do its job, and the Sprint 1 exercises now expect that. The Sprint 2 exercises that deal with invalid input still asked trainees to return false, or to skip values that weren't numbers. They now expect a named error instead.

@abdishakoor-dev abdishakoor-dev added the NotCoursework Not coursework - used for curriculum development work. label Sep 7, 2026
The exercises that deal with invalid input still asked trainees to
return false, or to skip values that weren't numbers. They now expect a
named error instead, matching what the Sprint 1 prep teaches.
@Liam310
Liam310 merged commit d4189cd into main Sep 7, 2026
@Liam310
Liam310 deleted the sprint-2-error-handling branch September 7, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NotCoursework Not coursework - used for curriculum development work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants