LanguageIntegrationTest: provideFormatSizes() fixes

* Swap messages from 1,024 to 1 where they are only 1
* Add a case for 1024 QB (which would be a future unit)

Change-Id: If2842890229cf1a1527d895e5e2d54fb1e1f5d24
This commit is contained in:
Reedy 2022-11-22 12:25:48 +00:00
parent ad33f2aed9
commit 771f51c73c

View file

@ -1117,7 +1117,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
[
1024 * 1024,
"1 MB",
"1,024 megabytes"
"1 megabyte"
],
[
1024 * 1024 * 1024,
@ -1137,7 +1137,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
[
1024 ** 6,
"1 EB",
"1,024 exabyte"
"1 exabyte"
],
[
1024 ** 7,
@ -1159,6 +1159,11 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
"1 QB",
"1 quettabyte"
],
[
1024 ** 11,
"1,024 QB",
"1,024 quettabytes"
],
// How big!? THIS BIG!
];
}