Example #1
0
 def testRightTriangleB(self):
     self.assertEqual(clsfy_triangle(5, 3, 4), 'Right')
Example #2
0
 def testEquilateralTriangles(self):
     self.assertEqual(clsfy_triangle(1, 1, 1), 'Equilateral')
Example #3
0
 def testRightTriangleA(self):
     self.assertEqual(clsfy_triangle(3, 4, 5), 'Right')
Example #4
0
 def testInvalidC(self):
     self.assertEqual(clsfy_triangle(5.5, 3, 3), "InvalidInput")
Example #5
0
 def testInvalidB(self):
     self.assertEqual(clsfy_triangle('I', 203, 162), "InvalidInput")
Example #6
0
 def testInvalidA(self):
     self.assertEqual(clsfy_triangle(5, 0, 3), "InvalidInput")
Example #7
0
 def testNotATriangle(self):
     self.assertEqual(clsfy_triangle(3, 4, 10), 'NotATriangle')
Example #8
0
 def testScaleneTriangles(self):
     self.assertEqual(clsfy_triangle(5, 6, 7), 'Scalene')
Example #9
0
 def testIsoscelesTrianglesB(self):
     self.assertEqual(clsfy_triangle(5, 7, 7), 'Isosceles')