Esempio n. 1
0
 def test_percentage_integers2(self):
     result = c.percentage(140, 200)
     self.assertEqual(result, 280)    
Esempio n. 2
0
 def test_percentage_integers(self):
     result = c.percentage(100, 20)
     self.assertEqual(result, 20)
Esempio n. 3
0
 def test_percentage_zero_integers2(self):
     result = c.percentage(110, 0)
     self.assertEqual(result, 0)
Esempio n. 4
0
 def test_percentage_integers4(self):
     result = c.percentage(200, 0.5)
     self.assertEqual(result, 1)
Esempio n. 5
0
 def test_percentage_integers3(self):
     result = c.percentage(250, 50)
     self.assertEqual(result, 125)  
Esempio n. 6
0
 def percentage(self, m, n):
     return c.percentage(m, n)