QA Fundamentals · Junior · Question 43 of 75

Why are boundary values a good place to look for bugs?

Show the answer

Correct answer: Off-by-one mistakes in comparisons are very common

Explanation

Writing < instead of <= or counting from 1 instead of 0 is easy. Tests at and just around the edges catch these mistakes cheaply.

Further reading

Problem with a question

QA Fundamentals · Junior · question 43

Test yourself

Take the QA Fundamentals · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz