Issue #17768: Support newline fill character in decimal.py and NUL fill

character in _decimal.c.
This commit is contained in:
Stefan Krah 2013-05-29 15:45:38 +02:00
parent c70a6ae49b
commit 6edda14b29
5 changed files with 64 additions and 16 deletions

View file

@ -1021,6 +1021,10 @@ class FormatTest(unittest.TestCase):
('/=10', '-45.6', '-/////45.6'),
('/=+10', '45.6', '+/////45.6'),
('/= 10', '45.6', ' /////45.6'),
('\x00=10', '-inf', '-\x00Infinity'),
('\x00^16', '-inf', '\x00\x00\x00-Infinity\x00\x00\x00\x00'),
('\x00>10', '1.2345', '\x00\x00\x00\x001.2345'),
('\x00<10', '1.2345', '1.2345\x00\x00\x00\x00'),
# thousands separator
(',', '1234567', '1,234,567'),