diff options
author | Guido van Rossum <guido@python.org> | 2001-09-21 15:46:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-09-21 15:46:41 (GMT) |
commit | 11310bf867ae1c26d2ad9dc696bf2331709b9843 (patch) | |
tree | a86cb921ac39dc6559772a3e26e30166b31a98a5 /Lib/test/test_unicode.py | |
parent | ad9744a67abb619fa1ce331d9e0314de05c7345e (diff) | |
download | cpython-11310bf867ae1c26d2ad9dc696bf2331709b9843.zip cpython-11310bf867ae1c26d2ad9dc696bf2331709b9843.tar.gz cpython-11310bf867ae1c26d2ad9dc696bf2331709b9843.tar.bz2 |
Add tests for repr() of strings containing string quotes as well.
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r-- | Lib/test/test_unicode.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 0748dc7..b0d024b 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -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: |