浏览代码

Added tests for string formattings

Dmitry Vasiliev 16 年前
父节点
当前提交
4a2bf5e853
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8
    0
      test.py

+ 8
- 0
test.py 查看文件

67
 " \a\b\c\"\'\n\r \x34\077 \08 \xag"
67
 " \a\b\c\"\'\n\r \x34\077 \08 \xag"
68
 r" \" \' "
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
 # Doctests.
78
 # Doctests.
71
 
79
 
72
 """
80
 """