Kaydet (Commit) 11310bf8 authored tarafından Guido van Rossum's avatar Guido van Rossum

Add tests for repr() of strings containing string quotes as well.

üst ad9744a6
......@@ -18,6 +18,10 @@ verify(repr(u'\n') == "u'\\n'")
verify(repr(u'\r') == "u'\\r'")
verify(repr(u'\t') == "u'\\t'")
verify(repr(u'\b') == "u'\\x08'")
verify(repr(u"'\"") == """u'\\'"'""")
verify(repr(u"'\"") == """u'\\'"'""")
verify(repr(u"'") == '''u"'"''')
verify(repr(u'"') == """u'"'""")
def test(method, input, output, *args):
if verbose:
......
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