[patch] floatformat broken
floatformat
is badly broken (I think after {581}). Here is the output from a few doctests I just whipped up:
**********************************************************************
File "tests/othertests/defaultfilters.py", line 4, in __main__
Failed example:
floatformat(7.0, None)
Expected:
'7'
Got:
7.0
**********************************************************************
File "tests/othertests/defaultfilters.py", line 8, in __main__
Failed example:
floatformat(0.07, None)
Expected:
'0.1'
Got:
0.070000000000000007
**********************************************************************
File "tests/othertests/defaultfilters.py", line 10, in __main__
Failed example:
floatformat(0.007, None)
Expected:
'0.0'
Got:
0.0070000000000000001
**********************************************************************
File "tests/othertests/defaultfilters.py", line 12, in __main__
Failed example:
floatformat(0.0, None)
Expected:
'0'
Got:
''
(In [1007]) Fixed #687 -- Fixed bug in floatformat template filter and added unit tests. Thanks, Sune