Commit dd71d21c authored by Stefan Behnel's avatar Stefan Behnel

extended test

parent 958c0177
......@@ -29,6 +29,26 @@ def test_string(o):
cdef string s = o
return s
def test_encode_to_string(o):
"""
>>> normalize(test_encode_to_string('abc'))
'abc'
>>> normalize(test_encode_to_string('abc\\x00def'))
'abc\\x00def'
"""
cdef string s = o.encode('ascii')
return s
def test_bytes_encode_to_string(bytes o):
"""
>>> normalize(test_bytes_encode_to_string('abc'))
'abc'
>>> normalize(test_bytes_encode_to_string('abc\\x00def'))
'abc\\x00def'
"""
cdef string s = o.encode('ascii')
return s
def test_string_call(a, b):
"""
>>> normalize(test_string_call("abc".encode('ascii'), "xyz".encode('ascii')))
......
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