Browse files

Added tests for `floatformat` template filter for number with non-zer…

…o decimal place digit and ending in zeros.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6647 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 72b7a33 commit a5eb61cd9f378049940d0bef6c83404516094ffc @gdub gdub committed Nov 4, 2007
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/regressiontests/defaultfilters/tests.py
View
4 tests/regressiontests/defaultfilters/tests.py
@@ -17,6 +17,10 @@
u'7.700'
>>> floatformat(6.000000,3)
u'6.000'
+>>> floatformat(6.200000, 3)
+u'6.200'
+>>> floatformat(6.200000, -3)
+u'6.200'
>>> floatformat(13.1031,-3)
u'13.103'
>>> floatformat(11.1197, -2)

0 comments on commit a5eb61c

Please sign in to comment.