From: Stefan Behnel Date: Sun, 6 Jan 2008 21:58:49 +0000 (+0100) Subject: extended test case X-Git-Tag: 0.9.6.14~47^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b6d79eae5755b33fd3de1db4bb5af400af7cb397;p=cython.git extended test case --- diff --git a/tests/run/powop.pyx b/tests/run/powop.pyx index c7f20d5e..10fead42 100644 --- a/tests/run/powop.pyx +++ b/tests/run/powop.pyx @@ -2,6 +2,12 @@ __doc__ = """ >>> f(1.0, 2.95)[0] == f(1.0, 2.95)[1] True + >>> g(4) + 1024 + + >>> h(4) + 625 + >>> constant_py() == 2L ** 10 True @@ -17,6 +23,12 @@ def f(obj2, obj3): obj1 = obj2 ** obj3 return flt1, obj1 +def g(i): + return i ** 5 + +def h(i): + return 5 ** i + def constant_py(): result = 2L ** 10 return result