Fix a number of thinkos in human-readable file size formatting.

* subversion/svn/filesize.c
  (format_size): Be smarter about predicting floating-point rounding to
   decide whether to show decimal places or not.
  (get_base2_unit_file_size): Fix human-readable size order calculation.
  (get_base10_unit_file_size): Likewise.

* build.conf (filesize-test): New test suite.
  (private-includes): Add subversion/svn/filesize.c for filesize-test.
* subversion/tests/client/filesize-test.c: New.

Found by: Tobias Bading <tbading{_AT_}web.de>
Patch by: me


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1878909 13f79535-47bb-0310-9956-ffa450edef68
3 files changed