mirror of
https://github.com/gryf/python-syntax.git
synced 2025-12-17 19:40:26 +01:00
Added tests for string formattings
This commit is contained in:
8
test.py
8
test.py
@@ -67,6 +67,14 @@ RuntimeWarning FutureWarning OverflowWarning ImportWarning UnicodeWarning
|
|||||||
" \a\b\c\"\'\n\r \x34\077 \08 \xag"
|
" \a\b\c\"\'\n\r \x34\077 \08 \xag"
|
||||||
r" \" \' "
|
r" \" \' "
|
||||||
|
|
||||||
|
# Formattings
|
||||||
|
|
||||||
|
" %f "
|
||||||
|
|
||||||
|
"{0.name!r:b} {0[n]} {name!s: }"
|
||||||
|
|
||||||
|
"${test} ${test ${test}aname"
|
||||||
|
|
||||||
# Doctests.
|
# Doctests.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user