Examples
The inverse check preserves every original byte, including the final newline.
A newline-delimited weather reading
Input
station=demo
celsius=-12.5
Expected checks
Bzip2 Decompress recovers:
73746174696f6e3d64656d6f0a63656c736975733d2d31322e350a- Block size (100s of kb)
9- Work factor
30
A small release manifest
Input
release=2.1.0
artifact=demo.tar.gz
Expected checks
Bzip2 Decompress recovers:
72656c656173653d322e312e300a61727469666163743d64656d6f2e7461722e677a0a- Block size (100s of kb)
9- Work factor
30
A repeated status log
Input
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
Expected checks
Bzip2 Decompress recovers:
72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a- Block size (100s of kb)
9- Work factor
30
An HTTP-like JSON event
Input
{"event":"deploy","project":"demo","ready":true}Expected checks
Bzip2 Decompress recovers:
7b226576656e74223a226465706c6f79222c2270726f6a656374223a2264656d6f222c227265616479223a747275657d- Block size (100s of kb)
9- Work factor
30
A comma-and-quote CSV row
Input
city,note
Paris,"rain, then sun"
Expected checks
Bzip2 Decompress recovers:
636974792c6e6f74650a50617269732c227261696e2c207468656e2073756e220a- Block size (100s of kb)
9- Work factor
30
Format reference: Bzip2 Compress background and specification