def main():
    results = OrderedDict()
    sys.stderr.write('Testing')
    sys.stderr.flush()
    for (name, kwargs, value) in TEST_VALUES:
        encoded = py_cbor2.dumps(value, **kwargs)
        results[name] = Result(encoding=test((lambda : c_cbor2.dumps(value, **kwargs))), decoding=test((lambda : c_cbor2.loads(encoded))), roundtrip=test((lambda : c_cbor2.loads(c_cbor2.dumps(value, **kwargs)))))
        sys.stderr.write('.')
        sys.stderr.flush()
    sys.stderr.write('\n')
    sys.stderr.write('\n')
    output_table(results)
    sys.stderr.write('\n')
def main():
    results = OrderedDict()
    sys.stderr.write('Testing')
    sys.stderr.flush()
    for (name, kwargs, value) in TEST_VALUES:
        encoded = py_cbor2.dumps(value, **kwargs)
        results[name] = Result(encoding=test((lambda : c_cbor2.dumps(value, **kwargs))), decoding=test((lambda : c_cbor2.loads(encoded))), roundtrip=test((lambda : c_cbor2.loads(c_cbor2.dumps(value, **kwargs)))))
        sys.stderr.write('.')
        sys.stderr.flush()
    sys.stderr.write('\n')
    sys.stderr.write('\n')
    output_table(results)
    sys.stderr.write('\n')