extended test case for builtin pow()
authorStefan Behnel <scoder@users.berlios.de>
Fri, 5 Nov 2010 17:30:15 +0000 (18:30 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 5 Nov 2010 17:30:15 +0000 (18:30 +0100)
tests/run/builtin_pow.pyx

index 8b4b4f04e563a16750e23328d4144928c4f11069..cb28160abbd3a378da87203609ea20ebacfc9a42 100644 (file)
@@ -30,3 +30,12 @@ def pow2_const():
     8
     """
     return pow(2,3)
+
+def pow_args(*args):
+    """
+    >>> pow_args(2,3)
+    8
+    >>> pow_args(2,3,5)
+    3
+    """
+    return pow(*args)