mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 13:52:14 +00:00
New test suite generating deterministic LXMF and protocol fixtures for Rust validation: 1. testLxmfWithImageField — LXMF with FIELD_IMAGE (nested array) 2. testLxmfWithFileAttachment — LXMF with FIELD_FILE_ATTACHMENTS 3. testLxmfWithMultipleFields — LXMF with CUSTOM_TYPE + CUSTOM_DATA 4. testAnnounceUtf8AppData — announce with raw UTF-8 (Rust format) 5. testAnnounceMsgpackAppData — announce with msgpack array (Ratdeck format) 6. testOpportunisticWireNoDestHash — [src:16][sig:64][packed] format 7. testSignallingBytesPacking — mode+MTU bitfield encoding 8. testPacketFlagEncoding — all flag byte combinations 9. testTruncatedHashLengths — 16/32/10 byte hash outputs 10. testHeaderFormats — Header1 (19 bytes) vs Header2 (35 bytes) All fixture values printed as hex for Rust cpp_interop_fields.rs to validate. 10/10 tests pass on native17.
This directory is intended for PlatformIO Test Runner and project tests. Unit Testing is a software testing method by which individual units of source code, sets of one or more MCU program modules together with associated control data, usage procedures, and operating procedures, are tested to determine whether they are fit for use. Unit testing finds problems early in the development cycle. More information about PlatformIO Unit Testing: - https://docs.platformio.org/en/latest/advanced/unit-testing/index.html