Skip to content
Astera Technology

Check whether a classification covers every allowed input

Find gaps and overlapping ranges before assigning a result.

Compare the rule with concrete cases

Fictional priority categories cover integer scores from zero to ten. Draft wording says low below four and high above six, leaving four, five and six unclassified. The repaired rule is low 0–3, medium 4–6, high 7–10. Scores outside 0–10 are invalid rather than a fourth category.

Filled synthetic modelling cases
ScoreDraft resultRepaired resultReason
3LowLow0–3
4No categoryMedium4–6
7HighHigh7–10
Download editable CSV ↓

Work through the distinction

Check coverage separately from input validity. Adding a catch-all “high” would misclassify an invalid score eleven instead of rejecting it.

What happens to scores six and eleven under the repaired rule?

Show the worked answer

Six is medium; eleven is invalid. Every permitted score has one category, but invalid scores have no category.

Acceptance wording to adapt

Accept integer scores 0 through 10 only. Return low for 0–3, medium for 4–6 and high for 7–10. Reject other values without returning a category.

Related resources