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:
parent
17752003a8
commit
459de8dc29
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user