def testScaleneRightTriangleF(self): """Scalene Right. Test all integer inputs in c, b, a order where a and b are legs and c is the hypotensue.""" self.assertEqual(classify_triangle(5, 4, 3), 'Scalene Right', '5, 4, 3 is a Scalene Right triangle')
def testEquilateralTriangleA(self): """Equilateral. Test all integer inputs.""" self.assertEqual(classify_triangle(1, 1, 1), 'Equilateral', '1,1,1 should be equilateral')
def testScaleneRightTriangleB(self): """Scalene Right. Test all integer inputs in a, c, b order where a and b are legs and c is the hypotensue.""" self.assertEqual(classify_triangle(3, 5, 4), 'Scalene Right', '3, 5, 4 is a Scalene Right triangle')
def testScaleneRightTriangleC(self): """Scalene Right. Test all integer inputs in b, a, c order where a and b are legs and c is the hypotensue.""" self.assertEqual(classify_triangle(4, 3, 5), 'Scalene Right', '4, 3, 5 is a Scalene Right triangle')
def testInvalInputA(self): """Test inputs that do not satisfy the bounds placed on the inputs. One invalid input > 200.""" self.assertEqual(classify_triangle(201, 100, 120), "InvalidInput", "201 is an invalid input")
def testDecimalInputsC(self): """Test decimal input to ensure the isInstance() check is working to ensure integer inputs. Three decimal inputs.""" self.assertEqual(classify_triangle(20.5, 20.5, 20.5), "InvalidInput", "20.5, 20.5, 20.5 are invalid inputs")
def testInvalInputG(self): """Test inputs that do not satisfy the bounds placed on the inputs. Combination of invalid inputs > 200 and <= 0.""" self.assertEqual(classify_triangle(-12, 400, 0), "InvalidInput", "-12, 400, and 0 are invalid inputs")
def testScaleneTriangleB(self): """Strictly scalene. Test side order B.""" self.assertEqual(classify_triangle(89, 114, 112), 'Scalene', '89, 114, 112 should be a Scalene triangle')
def testInvalInputE(self): """Test inputs that do not satisfy the bounds placed on the inputs. Two invalid inputs <= 0.""" self.assertEqual(classify_triangle(-10, -7, 10), "InvalidInput", "-10 and -7 are invalid inputs")
def testInvalInputF(self): """Test inputs that do not satisfy the bounds placed on the inputs. Three invalid inputs <= 0.""" self.assertEqual(classify_triangle(0, -100, -50), "InvalidInput", "0, -100, and -50 are invalid inputs")
def testInvalInputD(self): """Test inputs that do not satisfy the bounds placed on the inputs. One invalid input <= 0.""" self.assertEqual(classify_triangle(0, 4, 5), "InvalidInput", "0 is an invalid input")
def testInvalInputC(self): """Test inputs that do not satisfy the bounds placed on the inputs. Three invalid inputs > 200.""" self.assertEqual(classify_triangle(201, 204, 400), "InvalidInput", "201, 204, and 400 are invalid inputs")
def testInvalInputB(self): """Test inputs that do not satisfy the bounds placed on the inputs. Two invalid inputs > 200.""" # 'InvalidInput' is the expected output of the below test because the input check comes before the triangle validity check self.assertEqual(classify_triangle(205, 300, 100), "InvalidInput", "204.98 and 300 are invalid inputs")
def testIsoscelesTriangleA(self): """Strictly isosceles. Test side order A""" self.assertEqual(classify_triangle(20, 20, 25), 'Isosceles', '20, 20, 25 should be an Isosceles triangle')
def testInvalInputH(self): """Test inputs that do not satisfy the bounds placed on the inputs. Combination of invalid inputs > 200 and <= 0 and one valid input.""" self.assertEqual(classify_triangle(-4, 17, 201), "InvalidInput", "-4 and 201 are invalid inputs")
def testIsoscelesTriangleC(self): """Strictly isosceles. Test side order C.""" self.assertEqual(classify_triangle(25, 20, 20), 'Isosceles', '25, 20, 20 should be an Isosceles triangle')
def testDecimalInputsA(self): """Test decimal input to ensure the isInstance() check is working to ensure integer inputs. One decimal input.""" self.assertEqual(classify_triangle(20.5, 30, 40), "InvalidInput", "20.5 is an invalid input")
def testScaleneTriangleF(self): """Strictly scalene. Test side order F.""" self.assertEqual(classify_triangle(114, 112, 89), 'Scalene', '114, 112, 89 should be a Scalene triangle')
def testBadTriangleF(self): """Test inputs that do not satisfy the Triangle Inequality Theorem. Test side order F.""" self.assertEqual(classify_triangle(5, 2, 1), "NotATriangle", "5, 2, 1 side lengths cannot form a triangle")