Skip to content

Increase WPM y-label range to at least 5#93

Merged
max-niederman merged 3 commits intomax-niederman:mainfrom
bolphen:fix_#42
Sep 30, 2023
Merged

Increase WPM y-label range to at least 5#93
max-niederman merged 3 commits intomax-niederman:mainfrom
bolphen:fix_#42

Conversation

@bolphen
Copy link
Copy Markdown
Contributor

@bolphen bolphen commented Sep 29, 2023

Fix #42.

The old "division by zero" error can be consistently triggered when one tests on a single word "aaaaaaaaaaaa" (12 a's). There will only be two wpm counts, and the error triggers if the difference is smaller than 5.

@max-niederman max-niederman self-requested a review September 29, 2023 17:50
@max-niederman
Copy link
Copy Markdown
Owner

Thanks for the fix, @bolphen!

@max-niederman max-niederman merged commit 5b33304 into max-niederman:main Sep 30, 2023
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.

[Bug] divide by zero panic after exiting test

2 participants