projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8782c9
)
initial test for constant folding
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 13 Dec 2008 21:46:31 +0000
(22:46 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 13 Dec 2008 21:46:31 +0000
(22:46 +0100)
tests/run/consts.pyx
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/run/consts.pyx
b/tests/run/consts.pyx
new file mode 100644
(file)
index 0000000..
d9da343
--- /dev/null
+++ b/
tests/run/consts.pyx
@@ -0,0
+1,12
@@
+__doc__ = u"""
+>>> add()
+10
+>>> add_var(10)
+20
+"""
+
+def add():
+ return 1+2+3+4
+
+def add_var(a):
+ return 1+2 +a+ 3+4