Skip to content

Commit

Permalink
Tested pluralization of decimals.
Browse files Browse the repository at this point in the history
Refs #16723.
  • Loading branch information
aaugustin committed Jun 7, 2014
1 parent 5836a57 commit 1a01e24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/defaultfilters/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,9 @@ def test_pluralize(self):
self.assertEqual(pluralize(1), '')
self.assertEqual(pluralize(0), 's')
self.assertEqual(pluralize(2), 's')
self.assertEqual(pluralize(decimal.Decimal(1)), '')
self.assertEqual(pluralize(decimal.Decimal(0)), 's')
self.assertEqual(pluralize(decimal.Decimal(2)), 's')
self.assertEqual(pluralize([1]), '')
self.assertEqual(pluralize([]), 's')
self.assertEqual(pluralize([1, 2, 3]), 's')
Expand Down

0 comments on commit 1a01e24

Please sign in to comment.