Skip to content

Reject zero and invalid running times before calculating speed - #194

Merged
willtheorangeguy merged 2 commits into
mainfrom
fix/validate-running-time
Nov 7, 2026
Merged

willtheorangeguy merged 2 commits into
mainfrom
fix/validate-running-time

Conversation

@willtheorangeguy

Copy link
Copy Markdown
Owner

Reject zero, negative and non-finite running times before dividing. Reuse the existing input loop so a user can correct the entry.

Validation: existing tests plus a zero-time-to-valid-input CLI regression test.

@willtheorangeguy
willtheorangeguy merged commit ebaab11 into main Nov 7, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant