Files
fluxengine/tests/bitaccumulator.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
267 B
C++

#include "globals.h"
#include "bytes.h"
#include <assert.h>
int main(int argc, const char* argv[])
{
Bytes bytes;
ByteWriter bw(bytes);
BitWriter bitw(bw);
bitw.push(0x1e, 5);
bitw.flush();
assert(bytes == Bytes{ 0x1e });
return 0;
}