题目
构造下述三角形问题的弱健壮的等价类测试用例。
- 三角形问题:输入三个不超过100的正整数作为三角形的三条边,判断三角形是等边三角形、等腰不等边三角形、完全不等边三角形还是不能构成三角形。
解答
Test Case | a | b | c | Expected Output |
---|---|---|---|---|
WR1 | 101 | 1 | 1 | Value of a is out of range |
WR2 | 1 | 101 | 1 | Value of b is out of range |
WR3 | 1 | 1 | 101 | Value of c is out of range |
WR4 | -1 | 1 | 1 | Value of a is out of range |
WR5 | 1 | -1 | 1 | Value of b is out of range |
WR6 | 1 | 1 | -1 | Value of c is out of range |
WR7 | 1.1 | 1 | 1 | Value of a is not a integer |
WR8 | 1 | 1.1 | 1 | Value of b is not a integer |
WR9 | 1 | 1 | 1.1 | Value of c is not a integer |