예제 #1
0
from modu import functions

functions.square(2)
functions.cube(2)
functions.conditional(2)
예제 #2
0
 def test_cube(self):
     self.assertEqual(functions.cube(-1), -1)
     self.assertEqual(functions.cube(0), 0)
     self.assertEqual(functions.cube(2), 8)