Skip to content

Commit

Permalink
Update test_numbers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DenverCoder1 committed Jan 20, 2023
1 parent 221efb4 commit e87cc84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def test_nan_and_infinity(self):
assert numbers.format_compact_decimal(decimal.Decimal('Infinity'), locale='en_US', format_type="short") == '∞'
assert numbers.format_compact_decimal(decimal.Decimal('-Infinity'), locale='en_US', format_type="short") == '-∞'
assert numbers.format_compact_decimal(decimal.Decimal('NaN'), locale='en_US', format_type="short") == 'NaN'
assert numbers.format_currency(decimal.Decimal('Infinity'), 'USD', locale='en_US') == '$∞'
assert numbers.format_currency(decimal.Decimal('-Infinity'), 'USD', locale='en_US') == '-$∞'

def test_group_separator(self):
assert numbers.format_decimal(29567.12, locale='en_US', group_separator=False) == '29567.12'
Expand Down

0 comments on commit e87cc84

Please sign in to comment.