mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #17768: Support newline fill character in decimal.py and NUL fill
character in _decimal.c.
This commit is contained in:
parent
c70a6ae49b
commit
6edda14b29
5 changed files with 64 additions and 16 deletions
|
@ -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'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue