mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Add tests for repr() of strings containing string quotes as well.
This commit is contained in:
parent
ad9744a67a
commit
11310bf867
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue