From b6d79eae5755b33fd3de1db4bb5af400af7cb397 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 6 Jan 2008 22:58:49 +0100 Subject: [PATCH] extended test case --- tests/run/powop.pyx | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.26.2