-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Division by zero #86
Labels
bug
Something isn't working
Comments
eklairs
added a commit
to eklairs/smassh
that referenced
this issue
Apr 30, 2024
kraanzu
added a commit
that referenced
this issue
Apr 30, 2024
fix: division by zero error when calculating accuracy (#86)
Hey @yyolk! This bug will be fixed in the next release! If you are having this bug, again and again, you can install the fixed version from the master branch with: pip install git+https://github.com/kraanzu/smassh.git |
Should be fixed now. Please re-open if the issue still persists |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug 🐛
The application panics with
ZeroDivisionError
when calculating the accuracy on a new test when the first character is erased.To Reproduce 🐣
smassh
ZeroDivisionError
Expected behavior 🤔
The application doesn't crash when trying to erase the first character.
The statistics account for the first character being erased.
Maybe the WPM calculation accounts for all characters typed at the start of the session; where erased characters aren't subtracted from the overall calculation.
Screenshots 🧐
I couldn't capture screenshots, but I was able to make a video recording.
smassh-division-by-zero.mov
Your operating system name
Mac OS
Your operating system version
Sonoma 14.4.1
Additional context 📝
If I set the
Min Speed
to0
in settings, I cannot cause the application to crash withZeroDivisionError
using the steps above.The text was updated successfully, but these errors were encountered: