Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit a5eb61cd9f378049940d0bef6c83404516094ffc 1 parent 72b7a33
Gary Wilson Jr. gdub authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/regressiontests/defaultfilters/tests.py
4 tests/regressiontests/defaultfilters/tests.py
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.