예제 #1
0
 def test_isosceles_triangle_a(self):
     self.assertEqual(classify_triangle(3, 15, 15), 'Isoceles',
                      '9,15,15 is an Isoceles triangle')
예제 #2
0
 def test_isosceles_triangle_b(self):
     self.assertEqual(classify_triangle(100, 300, 300), 'InvalidInput')
예제 #3
0
 def test_scalene_triangle_b(self):
     self.assertEqual(classify_triangle(100, 200, 300), 'InvalidInput')
예제 #4
0
 def test_scalene_triangle_a(self):
     self.assertEqual(classify_triangle(1, 2, 3), 'Scalene')
예제 #5
0
 def test_equilateral_triangles(self):
     self.assertEqual(classify_triangle(1, 1, 1), 'Equilateral',
                      '1,1,1 should be equilateral')
예제 #6
0
 def test_right_triangle_c(self):
     self.assertEqual(classify_triangle(9, 12, 15), 'Right',
                      '9,12,15 is a Right triangle')
예제 #7
0
 def test_right_triangle_a(self):
     self.assertEqual(classify_triangle(3, 4, 5), 'Right',
                      '3,4,5 is a Right triangle')