| 6 | #include "lib/external/kryoflux.h" |
| 7 | |
| 8 | static void test_convert(const Bytes& kryofluxbytes, const Bytes& fluxmapbytes) |
| 9 | { |
| 10 | std::unique_ptr<Fluxmap> fluxmap = readStream(kryofluxbytes); |
| 11 | |
| 12 | if (fluxmap->rawBytes() != fluxmapbytes) |
| 13 | { |
| 14 | std::cout << "Kryoflux bytes:" << std::endl; |
| 15 | hexdump(std::cout, kryofluxbytes); |
| 16 | std::cout << std::endl << "Produced this:" << std::endl; |
| 17 | hexdump(std::cout, fluxmap->rawBytes()); |
| 18 | std::cout << std::endl << "Expected this:" << std::endl; |
| 19 | hexdump(std::cout, fluxmapbytes); |
| 20 | abort(); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | static void test_stream_reader() |
| 25 | { |
no test coverage detected