예제 #1
0
 def test_suma_2_mas_4_(self):
     cal = Calculator()
     self.assertEqual(6, cal.suma(2, 4))
예제 #2
0
 def test_division_1_2_(self):
     cal = Calculator()
     self.assertEqual(3, cal.division(9, 3))
예제 #3
0
 def test_suma_2_mas_2_(self):
     cal = Calculator()
     self.assertEqual(4, cal.suma(2, 2))
예제 #4
0
 def test_multiplica_2_9_(self):
     cal = Calculator()
     self.assertEqual(18, cal.multiplicacion(2, 9))
예제 #5
0
 def test_division_2_2_(self):
     cal = Calculator()
     self.assertEqual(1, cal.division(2, 2))
예제 #6
0
 def test_menos_3_2_(self):
     cal = Calculator()
     self.assertEqual(5, cal.resta(7, 2))
예제 #7
0
 def test_multiplica_2_2_(self):
     cal = Calculator()
     self.assertEqual(4, cal.multiplicacion(2, 2))
예제 #8
0
 def test_suma_2_mas_2_(self):
     cal = Calculator()
     self.assertEqual(4, cal.suma(2, 2))
예제 #9
0
 def test_menos_2_2_(self):
     cal = Calculator()
     self.assertEqual(0, cal.resta(2, 2))
예제 #10
0
 def test_division_2_2_(self):
     cal = Calculator()
     self.assertEqual(1, cal.division(2, 2))
예제 #11
0
 def test_division_1_2_(self):
     cal = Calculator()
     self.assertEqual(3, cal.division(9, 3))
예제 #12
0
 def test_multiplica_2_9_(self):
     cal = Calculator()
     self.assertEqual(18, cal.multiplicacion(2, 9))
예제 #13
0
 def test_multiplica_2_2_(self):
     cal = Calculator()
     self.assertEqual(4, cal.multiplicacion(2, 2))
예제 #14
0
 def test_menos_3_2_(self):
     cal = Calculator()
     self.assertEqual(5, cal.resta(7, 2))
예제 #15
0
 def test_menos_2_2_(self):
     cal = Calculator()
     self.assertEqual(0, cal.resta(2, 2))
예제 #16
0
 def test_suma_2_mas_4_(self):
     cal = Calculator()
     self.assertEqual(6, cal.suma(2, 4))