Char array equivalence classes

De Software testing
Ir para: navegação, pesquisa
Input and output conditions Valid classes Invalid classes
Array length (I/T) 1 <= array length <= 20 (1) array length < 1 (2), array length > 20 (3)
Char to be found (I/O) Char is 'y' (4), char is 'n' (5) Char is anything else (6)
Search for more char option (I/C) Char belongs to the string (7), char does not belong to the string (8)
Position (O/P) 1 <= position <= 20 (9) pos < 1 (10), pos > 20 (11)