You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A test case was written to test the edge case of when the divisor is 0, but the program got stuck in a loop.
Issue details
An if-statement checking whether it is a division by zero was added to the divide function and a corresponding test was created in the test class for LongDivision.
Steps to reproduce
No response
Excepted behavior
When the divide function was run with a division by zero, the program got stuck in a loop. Expected to return a 0 or division by zero exception.
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
A test case was written to test the edge case of when the divisor is 0, but the program got stuck in a loop.
Issue details
An if-statement checking whether it is a division by zero was added to the divide function and a corresponding test was created in the test class for LongDivision.
Steps to reproduce
No response
Excepted behavior
When the divide function was run with a division by zero, the program got stuck in a loop. Expected to return a 0 or division by zero exception.
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: