File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,8 @@ def test_nan_and_infinity(self):
118
118
assert numbers .format_compact_decimal (decimal .Decimal ('Infinity' ), locale = 'en_US' , format_type = "short" ) == '∞'
119
119
assert numbers .format_compact_decimal (decimal .Decimal ('-Infinity' ), locale = 'en_US' , format_type = "short" ) == '-∞'
120
120
assert numbers .format_compact_decimal (decimal .Decimal ('NaN' ), locale = 'en_US' , format_type = "short" ) == 'NaN'
121
+ assert numbers .format_currency (decimal .Decimal ('Infinity' ), 'USD' , locale = 'en_US' ) == '$∞'
122
+ assert numbers .format_currency (decimal .Decimal ('-Infinity' ), 'USD' , locale = 'en_US' ) == '-$∞'
121
123
122
124
def test_group_separator (self ):
123
125
assert numbers .format_decimal (29567.12 , locale = 'en_US' , group_separator = False ) == '29567.12'
You can’t perform that action at this time.
0 commit comments