projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae62e5e
)
added failing test case for literal lists to make sure we fix it for 0.17
author
Stefan Behnel
<stefan_ml@behnel.de>
Wed, 25 Jul 2012 06:04:50 +0000
(08:04 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Wed, 25 Jul 2012 06:04:50 +0000
(08:04 +0200)
tests/run/literal_lists.pyx
patch
|
blob
|
history
diff --git
a/tests/run/literal_lists.pyx
b/tests/run/literal_lists.pyx
index
f451086
..
35fd74f
100644
(file)
--- a/
tests/run/literal_lists.pyx
+++ b/
tests/run/literal_lists.pyx
@@
-10,6
+10,19
@@
import sys
if sys.version_info[0] < 3:
__doc__ = __doc__.replace(u"b'", u"'")
+def repeated_literals():
+ """
+ >>> repeated_literals()
+ p1: [4, 4]
+ p2: [5, 5]
+ """
+ cdef int i
+ cdef int* p1 = [4, 4]
+ cdef int* p2 = [5, 5]
+
+ print "p1: %s" % [ p1[i] for i in range(2) ]
+ print "p2: %s" % [ p2[i] for i in range(2) ]
+
def test_ints(int x):
"""
>>> test_ints(100)