Skip to content

Commit 4a2bf5e

Browse files
committed
Added tests for string formattings
1 parent 6f75c9a commit 4a2bf5e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ class classname
6767
" \a\b\c\"\'\n\r \x34\077 \08 \xag"
6868
r" \" \' "
6969

70+
# Formattings
71+
72+
" %f "
73+
74+
"{0.name!r:b} {0[n]} {name!s: }"
75+
76+
"${test} ${test ${test}aname"
77+
7078
# Doctests.
7179

7280
"""

0 commit comments

Comments
 (0)