예제 #1
0
    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)