def test_cube(self):
	self.assertEqual(calc.cube(2),8)
	self.assertEqual(calc.cube(4),64)
示例#2
0
def test_calcCube(a, b, c, d, answer):
    assert cube(a, b, c, d) == answer
示例#3
0
文件: imp.py 项目: Akshat122/Python
import calc

calc.square(10)

x = calc.cube(10)

print(x)