Пример #1
0
 def test_formula3_5(self):
     self.assertEqual(Counter(-5.645).answer(3),  51.08753224999999)
Пример #2
0
 def test_formula3_1(self):
     self.assertEqual(Counter(-729).answer(3), 1214173.557)
Пример #3
0
 def test_formula3_3(self):
     self.assertEqual(Counter(450).answer(3), 465469.65)
Пример #4
0
 def test_formula1_1(self):
     self.assertEqual(Counter(-10).answer(1), 26409.31)
Пример #5
0
 def test_formula2_7(self):
     self.assertEqual(Counter(409.254).answer(2),  290644000.5073057)
Пример #6
0
 def test_formula4_3(self):
     self.assertEqual(Counter(666).answer(4), 1647.0179999999998)
Пример #7
0
 def test_formula2_5(self):
     self.assertEqual(Counter(-5.645).answer(2),  -856.8464333367499)
Пример #8
0
 def test_formula1_7(self):
     self.assertEqual(Counter(409.254).answer(1), 83971172358.0089)
Пример #9
0
 def test_formula2_1(self):
     self.assertEqual(Counter(-172).answer(2), -21676942.592)
Пример #10
0
 def test_formula1_3(self):
     self.assertEqual(Counter(500).answer(1), 187001580839.5)
Пример #11
0
 def test_formula1_5(self):
     self.assertEqual(Counter(-5.645).answer(1), 2348.8621734280405)
Пример #12
0
 def test_formula_entering_true(self):
     self.assertEqual(Counter(-10).answer(1), 26409.31)
Пример #13
0
 def test_formula4_7(self):
     self.assertEqual(Counter(409.254).answer(4),  1012.085142)
Пример #14
0
 def test_formula4_5(self):
     self.assertEqual(Counter(-5.645).answer(4),  -13.960084999999998)
Пример #15
0
 def test_formula3_7(self):
     self.assertEqual(Counter(409.254).answer(3),  385136.11337964)
Пример #16
0
 def test_formula2_3(self):
     self.assertEqual(Counter(842).answer(2), 2532943697.8240004)
Пример #17
0
 def test_formula3_8(self):
     with self.assertRaises(ValueError) as context:
         Counter(409.253).answer(3)
     self.assertTrue('Number you entered is not in range. Please reenter number.' in str(context.exception))
Пример #18
0
 def test_formula4_1(self):
     self.assertEqual(Counter(-278).answer(4), -687.4939999999999)