If you failed to pass a test case, you should:
- Read the name of the test case to understand what is functionality is tested.
- Backtrace the call stack to find the function where the error occurs.
- Check if you give the correct input to this function.
- Feel free to add
printstatements to have the intermediate values printed to:- locate where it goes to the wrong branch?
- where the value started to deviate from expected value and what is the right value at that point?
- If you still cannot figure it out, stop and dump the phenomenon to user for help. This report should include:
- The name of the test case that fails.
- The error message and the call stack trace.
- The input values to the function where the error occurs.
- What is the value you observed at that point?
- What is the expected value at that point?
- Any other relevant information you think might help.
- If this bug is related to an issue implementation (which can be found on your branch name), please upload this bug to this issue for user intervention.
- If not, dump the above to the screen.