1234567891011121314 |
- Describe(basic_tests)
- {
- It(test1){Assert::That(rightTriangle(3, 4, 5), Equals(true));}
- It(test2){Assert::That(rightTriangle(145, 105, 100), Equals(true));}
- It(test3){Assert::That(rightTriangle(70, 130, 110), Equals(false));}
- It(test4){Assert::That(rightTriangle(60, 60, 60), Equals(false));}
- // A triangle can't have an edge of length 0.
- It(test5){Assert::That(rightTriangle(0, 4, 4), Equals(false));}
- // A triangle can't have edges of negative length.
- It(test6){Assert::That(rightTriangle(-3, 4, 5), Equals(false));}
- It(test7){Assert::That(rightTriangle(115, 277, 252), Equals(true));}
- It(test8){Assert::That(rightTriangle(140, 170, 220), Equals(false));}
- It(test9){Assert::That(rightTriangle(915, 1748, 1973), Equals(true));}
- };
|