testdata discoverability, adjust expected formatting

This commit is contained in:
Dmitry Jemerov
2010-10-27 14:02:59 +04:00
parent 30a16be0f1
commit fdd79f9e50
2 changed files with 121 additions and 126 deletions
@@ -1,13 +1,13 @@
n = 8
a = "{n:d} bottles of {what:>s} on the {where:>s}"\
"""
{n:d} bottles
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}"\
.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
n = 8
a = "{n:d} bottles of {what:>s} on the {where:>s}"\
"""
{n:d} bottles
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}"\
.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