1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Added more tests for floatformat filter with negative values.

This commit is contained in:
Sky 2019-10-31 09:24:31 +01:00 committed by Mariusz Felisiak
parent 17752003a8
commit 459de8dc29

View File

@ -26,7 +26,9 @@ class FunctionTests(SimpleTestCase):
self.assertEqual(floatformat(7.7), '7.7')
self.assertEqual(floatformat(7.0), '7')
self.assertEqual(floatformat(0.7), '0.7')
self.assertEqual(floatformat(-0.7), '-0.7')
self.assertEqual(floatformat(0.07), '0.1')
self.assertEqual(floatformat(-0.07), '-0.1')
self.assertEqual(floatformat(0.007), '0.0')
self.assertEqual(floatformat(0.0), '0')
self.assertEqual(floatformat(7.7, 0), '8')