Skip to content

Commit

Permalink
added failing test case for literal lists to make sure we fix it for …
Browse files Browse the repository at this point in the history
…0.17
  • Loading branch information
scoder committed Jul 25, 2012
1 parent ae62e5e commit 4bebe27
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/run/literal_lists.pyx
Expand Up @@ -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)
Expand Down

0 comments on commit 4bebe27

Please sign in to comment.