Files
fluxengine/tests/compression.cc
David Given 94fb10eb02 Behemoth change to rework everything to use Bytes rather than vectors of
uint8_t. The tests pass, but of course, nothing decodes any more.
2019-03-05 00:10:20 +01:00

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;
}