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