From a5eb61cd9f378049940d0bef6c83404516094ffc Mon Sep 17 00:00:00 2001 From: Gary Wilson Jr Date: Sun, 4 Nov 2007 02:32:02 +0000 Subject: [PATCH] Added tests for `floatformat` template filter for number with non-zero decimal place digit and ending in zeros. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6647 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/defaultfilters/tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/regressiontests/defaultfilters/tests.py b/tests/regressiontests/defaultfilters/tests.py index 9482f1cc9f..270642d4a0 100644 --- a/tests/regressiontests/defaultfilters/tests.py +++ b/tests/regressiontests/defaultfilters/tests.py @@ -17,6 +17,10 @@ u'0' 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)