You are here

function CommonSizeTestCase::testCommonParseSizeFormatSize in SimpleTest 7

Cross-test parse_size() and format_size().

File

tests/common.test, line 385
Tests for common.inc functionality.

Class

CommonSizeTestCase

Code

function testCommonParseSizeFormatSize() {
  foreach ($this->exact_test_cases as $size) {
    $this
      ->assertEqual($size, $parsed_size = parse_size($string = format_size($size, NULL)), $size . ' == ' . $parsed_size . ' (' . $string . ')');
  }
}