mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
19 lines
335 B
C++
19 lines
335 B
C++
#include "globals.h"
|
|
#include "bytes.h"
|
|
|
|
static void test_roundtrip()
|
|
{
|
|
Bytes source = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
|
|
|
|
auto compressed = source.compress();
|
|
auto decompressed = compressed.decompress();
|
|
|
|
assert(decompressed == source);
|
|
}
|
|
|
|
int main(int argc, const char* argv[])
|
|
{
|
|
test_roundtrip();
|
|
return 0;
|
|
}
|