Test case for triangle program:
No. Test content Test data Expected result
a b c
1 equilateral 5,5,5 4,5,5 equilateral
2 Isosceles 4,4,5 5,4,4 Isosceles
3 any 3,4,5 any
4 Non-triangular 9,4,4 4,9,4 4,4,9 No
5 Degenerate triangle 8,4,4 4,8,4 4,4,8 No
6 Zero data 0,4,5 4,0,5 4,5,0 No
7 0,0,0 No
8 Negative data -3,4,5 3, -4,5 3,4-5 Run error
9 -3, -4, -5 Operation error
10 Missing data 3,4 Operation error
11 non-integer 3.3, 4, 5 run error
12 Non-numeric characters A, 4,5 (types do not match) |