예제 #1
0
 def testInputTamgiac_Overflow_Test2(self):
     self.assertEqual(CheckType(math.pow(2, 32) + 1, 0, 6.0), "Overflow:")
예제 #2
0
 def testInputTamgiac_Overflow_Test2(self):
     self.assertEqual(
         CheckType(
             math.pow(2, 32) / 2,
             math.pow(2, 32) / 2,
             math.pow(2, 32) / 2), "Tam giac deu")
예제 #3
0
 def testTamgiac_Type(self):
     self.assertEqual(CheckType(1.0, 2.0, 3.0),
                      "Not correct type: triangle")
예제 #4
0
 def testTamgiacThuong(self):
     self.assertEqual(CheckType(4.0, 5.0, 6.0), "Tam giac thuong")
예제 #5
0
 def testTamgiac_VuongCan_TaiC(self):
     self.assertEqual(CheckType(math.sqrt(2), math.sqrt(2), 2.0),
                      "Tam giac vuong can: Tai C")
예제 #6
0
 def testTamgiac_Type_Float(self):
     self.assertEqual(CheckType(2, 2.0, 3.0), "Not correct type: float")
예제 #7
0
 def testTamgiac_Vuong_TaiC(self):
     self.assertEqual(CheckType(5.0, 4.0, 3.0), "Tam giac vuong B")
예제 #8
0
 def testTamgiac_VuongCan_TaiB(self):
     self.assertEqual(CheckType(2.0, math.sqrt(2), math.sqrt(2)),
                      "Tam giac vuong can: Tai B")
예제 #9
0
 def testTamgiac_Vuong_TaiB(self):
     self.assertEqual(CheckType(4.0, 3.0, 5.0), "Tam giac vuong A")
예제 #10
0
 def testTamgiac_Vuong_TaiA(self):
     self.assertEqual(CheckType(3.0, 5.0, 4.0), "Tam giac vuong C")
예제 #11
0
 def testTamgiac_Deu(self):
     self.assertEqual(CheckType(2.0, 2.0, 2.0), "Tam giac deu")
예제 #12
0
 def testTamgiac_Can_TaiC(self):
     self.assertEqual(CheckType(3.0, 2.0, 2.0), "Tam giac can C")
예제 #13
0
 def testTamgiac_Can_TaiB(self):
     self.assertEqual(CheckType(2.0, 3.0, 2.0), "Tam giac can B")