Ticket #3017: humanize.diff

File humanize.diff, 894 bytes (added by russellm, 8 years ago)

unit test for humanize.intcomma

  • tests/regressiontests/humanize/tests.py

     
    2727        self.humanize_tester(test_list, result_list, 'ordinal')
    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.1234567,
     31                     '100','1000','10123','10311','1000000','1234567.1234567')
     32        result_list = ('100', '1,000', '10,123', '10,311', '1,000,000','1,234,567.1234567',
     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')
    3436
Back to Top