| 22 | } |
| 23 | |
| 24 | static void test_stream_reader() |
| 25 | { |
| 26 | test_convert(Bytes{0}, Bytes{}); |
| 27 | |
| 28 | /* Simple one-byte intervals */ |
| 29 | test_convert(Bytes{0, 0x64, FLX_STOP}, Bytes{0xb0}); |
| 30 | |
| 31 | /* Index pulse */ |
| 32 | test_convert(Bytes{0, 0x64, FLX_INDEX, 0x64, FLX_STOP}, Bytes{0xf0, 0xb0}); |
| 33 | } |
| 34 | |
| 35 | int main(int argc, const char* argv[]) |
| 36 | { |