Equivalent class

De Software testing
Ir para: navegação, pesquisa

Example 0

The number of items can be of 1 to 99.

Valid classes Invalid classes
1 <= number of items <= 999 1 > number items


Example 1

For each car, 1 to 6 owners may be related.

Valid classes Invalid classes
1 <= number of owners <= 6 number of owner == 0, number of owners > 6


Example 2

Type of vehicle can be bus, truck, cab, car, motorbike..

Valid classes Invalid classes
bus, truck, cab, car, motorbike


Example 3

First identifier letter must be a letter.

Valid classes Invalid classes
First char is a ltter