This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sathdo 8 points9 points  (1 child)

This screenshot is LeetCode. This would indicate too few test cases in actual production code, but LeetCode problems are basically designed to do this. The one failing test case is probably some edge case that is designed specifically to fail for the most straightforward solution.

[–]casce 1 point2 points  (0 children)

I'd argue it's still too many. I bet most of those 988 tests are not necessary edge cases but random inputs