Commit 08cb6d3a authored by Stefan Behnel's avatar Stefan Behnel

additional tests for escape sequences in raw strings

parent 6ba9be3a
......@@ -104,6 +104,27 @@ __doc__ = ur"""
>>> len(u6)
7
>>> sresc
'\\12\\\'\\"\\\\'
>>> sresc == r'\12\'\"\\'
True
>>> len(sresc)
9
>>> bresc
b'\\12\\\'\\"\\\\'
>>> bresc == br'\12\'\"\\'
True
>>> len(bresc)
9
>>> uresc
u'\\12\\\'\\"\\\\'
>>> bresc == ur'\12\'\"\\'
True
>>> len(uresc)
9
>>> newlines == "Aaa\n"
True
......@@ -136,6 +157,10 @@ u4 = Ur"abc\x11"
u5 = uR"abc\x11"
u6 = UR"abc\x11"
sresc = r'\12\'\"\\'
bresc = br'\12\'\"\\'
uresc = ur'\12\'\"\\'
newlines = "Aaa\n"
# T640, long literals with escapes
......
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