@@ -576,10 +576,10 @@ def test_params(self, input, expected):
576
576
"""
577
577
Test the formatting of EngFormatter for various values of the 'places'
578
578
argument, in several cases:
579
- 0. without unit but with a space separator;
580
- 1. with both a unit and a space separator;
581
- 2 . with a unit but no space separator ;
582
- 3. with neihter a unit nor a space separator .
579
+ 0. without a unit symbol but with a (default) space separator;
580
+ 1. with both a unit symbol and a (default) space separator;
581
+ 2x . with both a unit symbol and some non default separators ;
582
+ 3x. without a unit symbol but with some non default separators .
583
583
"""
584
584
585
585
UNIT = 's' # seconds
@@ -611,13 +611,12 @@ def test_params(self, input, expected):
611
611
612
612
# Test several non default separators: no separator, a narrow
613
613
# no-break space (unicode character) and an extravagant string.
614
- for _sep in ("" ,"\u202f " , "@_@" ):
614
+ for _sep in ("" , "\u202f " , "@_@" ):
615
615
# Case 2x: unit=UNIT and sep=_sep.
616
616
# Remove the space separator from the reference case.
617
617
exp_outputs = (_s + _sep + UNIT if _s [- 1 ] in DIGITS # no prefix
618
618
else _s .replace (" " , _sep ) + UNIT
619
619
for _s in expected )
620
- #exp_outputs = list(_s.replace(" ", _sep) + UNIT for _s in expected)
621
620
formatters = (
622
621
mticker .EngFormatter (unit = UNIT , sep = _sep ), # places=None
623
622
mticker .EngFormatter (unit = UNIT , places = 0 , sep = _sep ),
0 commit comments