Django

Code

Changeset 4880

Show
Ignore:
Timestamp:
03/31/07 06:45:24 (1 year ago)
Author:
mtredinnick
Message:

Fixed #3017 -- Added tests for humanize filter.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/humanize/tests.py

    r4571 r4880  
    2828 
    2929    def test_intcomma(self): 
    30         test_list = ('100','1000','10123','10311','1000000') 
    31         result_list = ('100', '1,000', '10,123', '10,311', '1,000,000') 
     30        test_list = (100, 1000, 10123, 10311, 1000000, 1234567.25, 
     31                     '100','1000','10123','10311','1000000','1234567.1234567') 
     32        result_list = ('100', '1,000', '10,123', '10,311', '1,000,000','1,234,567.25', 
     33                       '100', '1,000', '10,123', '10,311', '1,000,000','1,234,567.1234567') 
    3234 
    3335        self.humanize_tester(test_list, result_list, 'intcomma')