Пример #1
0
 def test01(self):
     self.assertEqual(classify_triangle(1, 1, 1), 'equilateral')
Пример #2
0
 def test02(self):
     self.assertEqual(classify_triangle(2, 2, 2), 'equilateral')
Пример #3
0
 def test14(self):
     self.assertEqual(classify_triangle(0, 12, 15), 'NotATriangle')
Пример #4
0
 def test15(self):
     self.assertEqual(classify_triangle(0, 1, 0), 'NotATriangle')
Пример #5
0
 def test12(self):
     self.assertEqual(classify_triangle(9, 12, 15), 'right')
Пример #6
0
 def test13(self):
     self.assertEqual(classify_triangle(-1, 1, 1), 'NotATriangle')
Пример #7
0
 def test10(self):
     self.assertEqual(classify_triangle(3, 4, 5), 'right')
Пример #8
0
 def test11(self):
     self.assertEqual(classify_triangle(6, 8, 10), 'right')
Пример #9
0
 def test08(self):
     self.assertEqual(classify_triangle(2, 3, 4), 'scalene')
Пример #10
0
 def test09(self):
     self.assertEqual(classify_triangle(100, 200, 300), 'scalene')
Пример #11
0
 def test07(self):
     self.assertEqual(classify_triangle(1, 2, 3), 'scalene')
Пример #12
0
 def test06(self):
     self.assertEqual(classify_triangle(100, 200, 200), 'isosceles')
Пример #13
0
 def test05(self):
     self.assertEqual(classify_triangle(2, 3, 3), 'isosceles')
Пример #14
0
 def test04(self):
     self.assertEqual(classify_triangle(1, 2, 2), 'isosceles')
Пример #15
0
 def test03(self):
     self.assertEqual(classify_triangle(100, 100, 100), 'equilateral')