示例#1
0
文件: testCal.py 项目: zxcj04/gitTest
 def test_float_minus(self):
     self.assertEqual(calculator.minus(4.2, 3.2), 1.0)
示例#2
0
文件: testCal.py 项目: zxcj04/gitTest
 def test_int2_minus(self):
     self.assertEqual(calculator.minus(9, 4), 5)
示例#3
0
文件: testCal.py 项目: zxcj04/gitTest
 def test_int_minus(self):
     self.assertEqual(calculator.minus(9, 3), 6)
示例#4
0
 def testMinusFunction(self):
     self.assertEqual(minus(10, 0), 10)
示例#5
0
import cal

var1 = cal.modelname

var2 = cal.plus(3, 4)

var3 = cal.minus(7, 2)

print(var, var2, var3)
示例#6
0
文件: app_run.py 项目: Junghc/test_ci
def minus():
    a = num(request.args.get('a'))
    b = num(request.args.get('b'))
    return str(calculator.minus(a, b))