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
-**Test special cases:** Sometimes there are special or outlier cases. For instance, if a function performs a specific calculation that may become problematic closer to the value = 0, test it with the input of both 0 and
The text was updated successfully, but these errors were encountered:
I think it may have gotten blurred together with the example after it?
I think for the idea of testing special cases, one familiar example might be dividing by zero. Something like
Test special cases: Sometimes there are special or outlier cases. For instance, you may have some function that divides x / y: divide(x,y). Write a test for your function with y = 0 to ensure that it handles the special case correctly.
except i don't have my writing voice on right now and it could use a bit of @lwasser 's writing voice in it :)
The
with the input of both 0 and
part is missing information and cannot be read. Please tell us what you are trying to convey.python-package-guide/tests/write-tests.md
Line 84 in 53e10d6
The text was updated successfully, but these errors were encountered: