| 56 | // ── Tests ───────────────────────────────────────────────────────────────────── |
| 57 | |
| 58 | void testSingleFrame() |
| 59 | { |
| 60 | lm::packet pkt("N0CALL-9", "APRS", {"WIDE1-1", "WIDE2-1"}, ">Test payload 123"); |
| 61 | auto nrzi = makeNrziBitstream(pkt); |
| 62 | |
| 63 | HdlcCodec codec; |
| 64 | auto r = feedBits(codec, nrzi); |
| 65 | |
| 66 | report("single frame: exactly one complete", r.frames == 1); |
| 67 | report("single frame: FCS valid", r.goodFcs == 1); |
| 68 | } |
| 69 | |
| 70 | void testFrameContents() |
| 71 | { |
no test coverage detected