1
0
mirror of https://github.com/django/django.git synced 2025-01-24 00:59:20 +00:00

Tested pluralization of decimals.

Refs #16723.
This commit is contained in:
Aymeric Augustin 2014-06-07 23:08:23 +02:00
parent 5836a5771f
commit 1a01e24331

View File

@ -654,6 +654,9 @@ class DefaultFiltersTests(TestCase):
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')