Ticket #3176: tests.regressiontests.defaultfilters.tests.py.patch

File tests.regressiontests.defaultfilters.tests.py.patch, 676 bytes (added by Eric Floehr <eric@…>, 18 years ago)

Patch to template filter regression tests to add tests for new functionality of floatformat

  • tests/regressiontests/defaultfilters/tests.py

     
    1111'0.0'
    1212>>> floatformat(0.0)
    1313'0'
     14>>> floatformat(7.7,3)
     15'7.700'
     16>>> floatformat(6.000000,3)
     17'6.000'
     18>>> floatformat(13.1031,-3)
     19'13.103'
     20>>> floatformat(11.1197, -2)
     21'11.12'
     22>>> floatformat(11.0000, -2)
     23'11'
     24>>> floatformat(11.000001, -2)
     25'11.00'
     26>>> floatformat(8.2798, 3)
     27'8.280'
    1428
    1529>>> addslashes('"double quotes" and \'single quotes\'')
    1630'\\"double quotes\\" and \\\'single quotes\\\''
Back to Top