aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functions
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-11-16 07:43:24 +0100
committerAndreas Fischer <bantu@phpbb.com>2012-11-16 08:00:07 +0100
commitb7ec639945a4667508e4a3d1f8ac73da94809b21 (patch)
tree51c29c05ec5b54d800ace126e5023e047099b596 /tests/functions
parentc15b98999ef1ba26531e3d6e20695a8f2672f5a4 (diff)
downloadforums-b7ec639945a4667508e4a3d1f8ac73da94809b21.tar
forums-b7ec639945a4667508e4a3d1f8ac73da94809b21.tar.gz
forums-b7ec639945a4667508e4a3d1f8ac73da94809b21.tar.bz2
forums-b7ec639945a4667508e4a3d1f8ac73da94809b21.tar.xz
forums-b7ec639945a4667508e4a3d1f8ac73da94809b21.zip
[ticket/11192] Also test powers of 10 / 1000.
PHPBB3-11192
Diffstat (limited to 'tests/functions')
-rw-r--r--tests/functions/get_formatted_filesize_test.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/functions/get_formatted_filesize_test.php b/tests/functions/get_formatted_filesize_test.php
index 1cc7ddf9ec..802f82d126 100644
--- a/tests/functions/get_formatted_filesize_test.php
+++ b/tests/functions/get_formatted_filesize_test.php
@@ -21,6 +21,13 @@ class phpbb_get_formatted_filesize_test extends phpbb_test_case
array(1073741824, '1 GIB'),
array(1099511627776, '1 TIB'),
+ // exact powers of 10
+ array(1000, '1000 BYTES'),
+ array(1000000, '976.56 KIB'),
+ array(1000000000, '953.67 MIB'),
+ array(1000000000000, '931.32 GIB'),
+ array(100000000000000, '90.95 TIB'),
+
array(0, '0 BYTES'),
array(2, '2 BYTES'),
array(-2, '-2 BYTES'),