Commit 3f8cf084 authored by Stefan Behnel's avatar Stefan Behnel

extend test

parent 9729f160
......@@ -166,3 +166,15 @@ def inplace_ops_use_arithmetic():
s -= 1
s -= x
return s
@cython.test_fail_if_path_exists('//CoerceFromPyTypeNode')
def indexing_to_char(bytes s):
"""
>>> ord('b')
98
>>> indexing_to_char('abc'.encode('ascii'))
98
"""
cdef unsigned char c = s[1]
return c
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment