Index: trunk/phase3/tests/phpunit/languages/LanguageTest.php |
— | — | @@ -303,29 +303,48 @@ |
304 | 304 | array( |
305 | 305 | 0, |
306 | 306 | "0bps", |
307 | | - "0 bytes per second" |
| 307 | + "0 bits per second" |
308 | 308 | ), |
309 | 309 | array( |
310 | | - 1024, |
| 310 | + 1000, |
311 | 311 | "1kbps", |
312 | | - "1 kilobyte per second" |
| 312 | + "1 kilobit per second" |
313 | 313 | ), |
314 | 314 | array( |
315 | | - 1024 * 1024, |
| 315 | + 1000 * 1000, |
316 | 316 | "1Mbps", |
317 | | - "1 megabyte per second" |
| 317 | + "1 megabit per second" |
318 | 318 | ), |
319 | | - // Test commented out as currently resulting in 1.1Gbps |
320 | | -// array( |
321 | | -// 1024 * 1024 * 1024, |
322 | | -// "1Gbps", |
323 | | -// "1 gigabyte per second" |
324 | | -// ), |
325 | | -// array( |
326 | | -// 1024 * 1024 * 1024 * 1024, |
327 | | -// "1,024Gbps", |
328 | | -// "1,024 gigabytes per second" |
329 | | -// ), |
| 319 | + array( |
| 320 | + pow( 10, 9 ), |
| 321 | + "1Gbps", |
| 322 | + "1 gigabit per second" |
| 323 | + ), |
| 324 | + array( |
| 325 | + pow( 10, 12 ), |
| 326 | + "1Tbps", |
| 327 | + "1 terabit per second" |
| 328 | + ), |
| 329 | + array( |
| 330 | + pow( 10, 15 ), |
| 331 | + "1Pbps", |
| 332 | + "1 petabit per second" |
| 333 | + ), |
| 334 | + array( |
| 335 | + pow( 10, 18 ), |
| 336 | + "1Ebps", |
| 337 | + "1 exabit per second" |
| 338 | + ), |
| 339 | + array( |
| 340 | + pow( 10, 21 ), |
| 341 | + "1Zbps", |
| 342 | + "1 zetabit per second" |
| 343 | + ), |
| 344 | + array( |
| 345 | + pow( 10, 24 ), |
| 346 | + "1Ybps", |
| 347 | + "1 yottabit per second" |
| 348 | + ), |
330 | 349 | ); |
331 | 350 | } |
332 | 351 | } |