run_test.py 218 B

12345678
  1. import zstandard as zstd
  2. data = b'foo'
  3. compress = zstd.ZstdCompressor(write_checksum=True, write_content_size=True).compress
  4. decompress = zstd.ZstdDecompressor().decompress
  5. assert decompress(compress(data)) == data