diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-09-08 20:20:19 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-09-08 20:20:19 (GMT) |
commit | 5cfa8044ff9fd26dc4915fc2ce5b2d005eea3261 (patch) | |
tree | d9e4c236a0ed095d02491c6a49df1fa239f0f79d /Lib/test | |
parent | 81809a42c1639ab6f49900eea15808bf71c6e567 (diff) | |
download | cpython-5cfa8044ff9fd26dc4915fc2ce5b2d005eea3261.zip cpython-5cfa8044ff9fd26dc4915fc2ce5b2d005eea3261.tar.gz cpython-5cfa8044ff9fd26dc4915fc2ce5b2d005eea3261.tar.bz2 |
Issue #6857: Fix Decimal formatting to be consistent with existing float
formatting: both are now right-aligned by default.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_decimal.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py index 50a855e..0128231 100644 --- a/Lib/test/test_decimal.py +++ b/Lib/test/test_decimal.py @@ -712,6 +712,7 @@ class DecimalFormatTest(unittest.TestCase): ('', '1.00', '1.00'), # test alignment and padding + ('6', '123', ' 123'), ('<6', '123', '123 '), ('>6', '123', ' 123'), ('^6', '123', ' 123 '), @@ -741,7 +742,7 @@ class DecimalFormatTest(unittest.TestCase): (',', '-1234567', '-1,234,567'), (',', '-123456', '-123,456'), ('7,', '123456', '123,456'), - ('8,', '123456', '123,456 '), + ('8,', '123456', ' 123,456'), ('08,', '123456', '0,123,456'), # special case: extra 0 needed ('+08,', '123456', '+123,456'), # but not if there's a sign (' 08,', '123456', ' 123,456'), |