projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
821bc17
)
extended test case
author
Stefan Behnel
<scoder@users.berlios.de>
Sun, 6 Jan 2008 21:58:49 +0000
(22:58 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sun, 6 Jan 2008 21:58:49 +0000
(22:58 +0100)
tests/run/powop.pyx
patch
|
blob
|
history
diff --git
a/tests/run/powop.pyx
b/tests/run/powop.pyx
index c7f20d5ed89b1d4d7dbb2ba51e0b6e3a4afbc67c..10fead42e2cf8fa7e2cabdee4896011e53ee9ab5 100644
(file)
--- 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