ソースを参照

Added tests for string formattings

Dmitry Vasiliev 16 年 前
コミット
4a2bf5e853
共有1 個のファイルを変更した8 個の追加0 個の削除を含む
  1. 8
    0
      test.py

+ 8
- 0
test.py ファイルの表示

@@ -67,6 +67,14 @@ RuntimeWarning FutureWarning OverflowWarning ImportWarning UnicodeWarning
67 67
 " \a\b\c\"\'\n\r \x34\077 \08 \xag"
68 68
 r" \" \' "
69 69
 
70
+# Formattings
71
+
72
+" %f "
73
+
74
+"{0.name!r:b} {0[n]} {name!s:  }"
75
+
76
+"${test} ${test ${test}aname"
77
+
70 78
 # Doctests.
71 79
 
72 80
 """