python_leetcode_runner icon indicating copy to clipboard operation
python_leetcode_runner copied to clipboard

Show errored testcase errors with failed testcase outputs

Open tusharsadhwani opened this issue 4 years ago • 1 comments

Test 1 - ([1]).............................................................................FAILED
Test 2 - ([1, 2])..........................................................................PASSED
Test 3 - ([1, 2, 2, 1])....................................................................PASSED
Test 4 - ([1, 2, 3, 4, 5]).................................................................FAILED
Test 5 - ([1, 2, 3, 2, 1]).................................................................PASSED
Errors:

Inputs: [1]
Assertion: assert output == expected, (output, expected)
Expected: True
Error: AttributeError: 'NoneType' object has no attribute 'next'

Inputs: [1, 2, 3, 4, 5]
Assertion: assert output == expected, (output, expected)
Expected: True
Output: False

tusharsadhwani avatar Jul 17 '21 13:07 tusharsadhwani

Optionally, a -v flag to show the entire traceback

tusharsadhwani avatar Jul 17 '21 13:07 tusharsadhwani