def _testTableDirectoryCompressedLength(data, reporter):
    directory = unpackDirectory(data)
    for table in directory:
        tag = table["tag"]
        compLength = table["compLength"]
        origLength = table["origLength"]
        if compLength > origLength:
            reporter.logError(message="The \"%s\" table directory entry has a compressed length (%d) larger than the original length (%d)." % (tag, compLength, origLength))
        else:
            reporter.logPass(message="The \"%s\" table directory entry has proper compLength and origLength values." % tag)
Tests:
dataset/ETHPy150Open typesupply/woffTools/Lib/woffTools/tools/validate.py/_testTableDirectoryCompressedLength