fixed tests for convert format operator

This commit is contained in:
Ekaterina Tuzova
2012-12-17 18:30:00 +04:00
parent 4a49190ebf
commit 5402576412
2 changed files with 5 additions and 5 deletions
@@ -1,2 +1,2 @@
print u"\N{LATIN SMALL LETTER B}{0:>s}\N{NUMBER SIGN}\
{1:>s}\N{LATIN SMALL LETTER B}".format(str1, str2)
print u"\N{LATIN SMALL LETTER B}{0:s}\N{NUMBER SIGN}\
{1:s}\N{LATIN SMALL LETTER B}".format(str1, str2)
@@ -1,13 +1,13 @@
n = 8
a = "{n:d} bottles of {what:>s} on the {where:>s}"\
a = "{n:d} bottles of {what:s} on the {where:s}"\
"""
{n:d} bottles
of {what:>s}
of {what:s}
"""\
r'\n/ take {howmuch!r:s} down \n/'\
ur"pass it {how:>8s}"\
"{new_n:#d} {{that is, {percent:+3.2f}% less}} "\
"bottles of {what:>6s} on the {where:>s}"\
"bottles of {what:>6s} on the {where:s}"\
.format(n=n, where="wall", howmuch=u'one', how="'round\t", new_n=(n - 1), percent=100 * (1 - ((n - 1.0) / n)),
what="beer")
print a