Exemple #1
0
 def test_float_minus(self):
     self.assertEqual(calculator.minus(4.2, 3.2), 1.0)
Exemple #2
0
 def test_int2_minus(self):
     self.assertEqual(calculator.minus(9, 4), 5)
Exemple #3
0
 def test_int_minus(self):
     self.assertEqual(calculator.minus(9, 3), 6)
Exemple #4
0
 def testMinusFunction(self):
     self.assertEqual(minus(10, 0), 10)
Exemple #5
0
import cal

var1 = cal.modelname

var2 = cal.plus(3, 4)

var3 = cal.minus(7, 2)

print(var, var2, var3)
Exemple #6
0
def minus():
    a = num(request.args.get('a'))
    b = num(request.args.get('b'))
    return str(calculator.minus(a, b))