示例#1
0
 def test_twenty_fifth_calculation1(self):
     F = Formuls("48увсdv84")
     res = F.formul_1()
     self.assertEqual(res, "Incorrect entry")
示例#2
0
 def test_third_calculation1(self):
     F = Formuls(0)
     res = F.formul_1()
     self.assertEqual(res, 0.0)
示例#3
0
 def test_twenty_fourth_calculation1(self):
     F = Formuls("фвісы2ыс15")
     res = F.formul_1()
     self.assertEqual(res, "Incorrect entry")
示例#4
0
 def test_fourth_calculation1(self):
     F = Formuls(2)
     res = F.formul_1()
     self.assertEqual(res, 66.078)
示例#5
0
 def test_seventh_calculation1(self):
     F = Formuls(199)
     res = F.formul_1()
     self.assertEqual(res, 5898590745.674)
示例#6
0
 def test_twenty_seventh_calculation1(self):
     F = Formuls("*5+a4сі")
     res = F.formul_1()
     self.assertEqual(res, "Incorrect entry")
示例#7
0
 def test_twenty_ninth_calculation1(self):
     F = Formuls("511`  `")
     res = F.formul_1()
     self.assertEqual(res, "Incorrect entry")
示例#8
0
 def test_second_calculation1(self):
     F = Formuls(0.1)
     res = F.formul_1()
     self.assertEqual(res, 0.414437)
示例#9
0
 def test_fifteenth_calculation1(self):
     F = Formuls("k0771+")
     res = F.formul_1()
     self.assertEqual(res, "Incorrect entry")
示例#10
0
 def test_eleventh_calculation1(self):
     F = Formuls("-2")
     res = F.formul_1()
     self.assertEqual(res, NonPositiveIncorrect entry)
示例#11
0
 def test_twelfth_calculation1(self):
     F = Formuls("151")
     res = F.formul_1()
     self.assertEqual(res, "Incorrect entry")
示例#12
0
 def test_tenth_calculation1(self):
     F = Formuls(300)
     res = F.formul_1()
     self.assertEqual(res, 30435863805.9)
示例#13
0
 def test_ninth_calculation1(self):
     F = Formuls(200)
     res = F.formul_1()
     self.assertEqual(res, 6017962890.6)
示例#14
0
 def test_eighth_calculation1(self):
     F = Formuls(192.3)
     res = F.formul_1()
     self.assertEqual(res, 5143964060.866511)
示例#15
0
 def test_first_calculation1(self):
     F = Formuls(1)
     res = F.formul_1()
     self.assertEqual(res, 5.324)
示例#16
0
 def test_eighteenth_calculation1(self):
     F = Formuls("98u")
     res = F.formul_1()
     self.assertEqual(res, "Incorrect entry")
示例#17
0
 def test_twenty_sixth_calculation1(self):
     F = Formuls("lka462")
     res = F.formul_1()
     self.assertEqual(res, "Incorrect entry")
示例#18
0
 def test_twenty_first_calculation1(self):
     F = Formuls("одisd")
     res = F.formul_1()
     self.assertEqual(res, "Incorrect entry")
示例#19
0
 def test_twenty_eighth_calculation1(self):
     F = Formuls("9a4841ccd8u")
     res = F.formul_1()
     self.assertEqual(res, "Incorrect entry")
示例#20
0
 def test_twenty_second_calculation1(self):
     F = Formuls("sd484")
     res = F.formul_1()
     self.assertEqual(res, "Incorrect entry")
示例#21
0
 def test_thirtieth_calculation1(self):
     F = Formuls("/74dac826k")
     res = F.formul_1()
     self.assertEqual(res, "Incorrect entry")
示例#22
0
 def test_twenty_third_calculation1(self):
     F = Formuls("ada84вм")
     res = F.formul_1()
     self.assertEqual(res, "Incorrect entry")
示例#23
0
 def test_fifth_calculation1(self):
     F = Formuls(58)
     res = F.formul_1()
     self.assertEqual(res, 42862423.574)
示例#24
0
 def test_sixth_calculation1(self):
     F = Formuls(1000)
     res = F.formul_1()
     self.assertEqual(res, 3752266653653.0)