From 4a2bf5e85372b75128392751b590dcb24ebfee5b Mon Sep 17 00:00:00 2001 From: Dmitry Vasiliev Date: Sun, 21 Sep 2008 20:19:34 +0400 Subject: [PATCH] Added tests for string formattings --- test.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test.py b/test.py index 44430ce..c97e51d 100644 --- a/test.py +++ b/test.py @@ -67,6 +67,14 @@ RuntimeWarning FutureWarning OverflowWarning ImportWarning UnicodeWarning " \a\b\c\"\'\n\r \x34\077 \08 \xag" r" \" \' " +# Formattings + +" %f " + +"{0.name!r:b} {0[n]} {name!s: }" + +"${test} ${test ${test}aname" + # Doctests. """