From 04c155fd06484058d5677f61f6931f7f5da0922f Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sat, 31 Mar 2007 11:45:24 +0000 Subject: [PATCH] Fixed #3017 -- Added tests for humanize filter. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4880 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/humanize/tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/regressiontests/humanize/tests.py b/tests/regressiontests/humanize/tests.py index e342d7ded8..b80150df01 100644 --- a/tests/regressiontests/humanize/tests.py +++ b/tests/regressiontests/humanize/tests.py @@ -27,8 +27,10 @@ should've produced %s""" % (method, rendered, result_list[index])) self.humanize_tester(test_list, result_list, 'ordinal') def test_intcomma(self): - test_list = ('100','1000','10123','10311','1000000') - result_list = ('100', '1,000', '10,123', '10,311', '1,000,000') + test_list = (100, 1000, 10123, 10311, 1000000, 1234567.25, + '100','1000','10123','10311','1000000','1234567.1234567') + result_list = ('100', '1,000', '10,123', '10,311', '1,000,000','1,234,567.25', + '100', '1,000', '10,123', '10,311', '1,000,000','1,234,567.1234567') self.humanize_tester(test_list, result_list, 'intcomma')