Test Cases(或者說Corner Cases),如何想的更全面一些?

Tech In Pieces發表於2020-12-30

如何想的全面?練的多了就會全面,背誦記的多了就會自然而然想起來。
所以不妨現在總結一下:

duplicate or unique?
even or odd?
case sensitive?
do we need to deal with the white space(front or end)
int: do we need to worry about int stack overflow? (如果需要 我們可以用long)
do we need to worry about 0 or negative?

相關文章