Esempio n. 1
0
 def test_sixth_calculation1(self):
     F = Formulas(1000)
     res = F.calculation_1()
     self.assertEqual(res, 1557856753851.0)
Esempio n. 2
0
 def test_thirteenth_calculation4(self):
     F = Formulas("0-")
     res = F.calculation_4()
     self.assertEqual(res, "Error")
Esempio n. 3
0
 def test_second_calculation2(self):
     F = Formulas(0.1)
     res = F.calculation_2()
     self.assertEqual(res, 0.553948)
Esempio n. 4
0
 def test_tenth_calculation4(self):
     F = Formulas(300)
     res = F.calculation_4()
     self.assertEqual(res, 1294.2)
Esempio n. 5
0
 def test_twelfth_calculation4(self):
     F = Formulas("151")
     res = F.calculation_4()
     self.assertEqual(res, "Error")
Esempio n. 6
0
 def test_tenth_calculation1(self):
     F = Formulas(300)
     res = F.calculation_1()
     self.assertEqual(res, 12691391235.3)
Esempio n. 7
0
 def test_tenth_calculation3(self):
     F = Formulas(300)
     res = F.calculation_3()
     self.assertEqual(res, 176391.6)
Esempio n. 8
0
 def test_seventh_calculation3(self):
     F = Formulas(199)
     res = F.calculation_3()
     self.assertEqual(res, 77853.57599999999)
Esempio n. 9
0
 def test_seventh_calculation4(self):
     F = Formulas(199)
     res = F.calculation_4()
     self.assertEqual(res, 858.486)
Esempio n. 10
0
 def test_seventh_calculation1(self):
     F = Formulas(199)
     res = F.calculation_1()
     self.assertEqual(res, 2467366295.196)
Esempio n. 11
0
 def test_seventh_calculation2(self):
     F = Formulas(199)
     res = F.calculation_2()
     self.assertEqual(res, 19605494.527000003)
Esempio n. 12
0
 def test_sixth_calculation4(self):
     F = Formulas(1000)
     res = F.calculation_4()
     self.assertEqual(res, 4314.0)
Esempio n. 13
0
 def test_sixth_calculation3(self):
     F = Formulas(1000)
     res = F.calculation_3()
     self.assertEqual(res, 1951572.0)
Esempio n. 14
0
 def test_sixth_calculation2(self):
     F = Formulas(1000)
     res = F.calculation_2()
     self.assertEqual(res, 2495950720.0)
Esempio n. 15
0
 def test_ninth_calculation3(self):
     F = Formulas(200)
     res = F.calculation_3()
     self.assertEqual(res, 78634.4)
Esempio n. 16
0
 def test_eighth_calculation1(self):
     F = Formulas(192.359)
     res = F.calculation_1()
     self.assertEqual(res, 2155038503.593075)
Esempio n. 17
0
 def test_ninth_calculation4(self):
     F = Formulas(200)
     res = F.calculation_4()
     self.assertEqual(res, 862.8)
Esempio n. 18
0
 def test_first_calculation3(self):
     F = Formulas(1)
     res = F.calculation_3()
     self.assertEqual(res, 5.52)
Esempio n. 19
0
 def test_tenth_calculation2(self):
     F = Formulas(300)
     res = F.calculation_2()
     self.assertEqual(res, 67262766.0)
Esempio n. 20
0
 def test_eighth_calculation2(self):
     F = Formulas(192.359)
     res = F.calculation_2()
     self.assertEqual(res, 17704987.909240797)
Esempio n. 21
0
 def test_first_calculation4(self):
     F = Formulas(1)
     res = F.calculation_4()
     self.assertEqual(res, 4.314)
Esempio n. 22
0
 def test_eighth_calculation3(self):
     F = Formulas(192.359)
     res = F.calculation_3()
     self.assertEqual(res, 72766.972896188)
Esempio n. 23
0
 def test_eleventh_calculation4(self):
     F = Formulas("x")
     res = F.calculation_4()
     self.assertEqual(res, "Error")
Esempio n. 24
0
 def test_eighth_calculation4(self):
     F = Formulas(192.359)
     res = F.calculation_4()
     self.assertEqual(res, 829.836726)
Esempio n. 25
0
 def test_second_calculation1(self):
     F = Formulas(0.1)
     res = F.calculation_1()
     self.assertEqual(res, 0.16663440000000002)
Esempio n. 26
0
 def test_ninth_calculation1(self):
     F = Formulas(200)
     res = F.calculation_1()
     self.assertEqual(res, 2517182450.2)
Esempio n. 27
0
 def test_fourteenth_calculation3(self):
     F = Formulas("=1")
     res = F.calculation_3()
     self.assertEqual(res, "Error")
Esempio n. 28
0
 def test_ninth_calculation2(self):
     F = Formulas(200)
     res = F.calculation_2()
     self.assertEqual(res, 19902944.0)
Esempio n. 29
0
 def test_fifteenth_calculation4(self):
     F = Formulas("k0771+")
     res = F.calculation_4()
     self.assertEqual(res, "Error")
Esempio n. 30
0
 def test_fifth_calculation4(self):
     F = Formulas(-200)
     res = F.calculation_4()
     self.assertEqual(res, -862.8)