mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-22 23:10:38 +00:00
New test suite validating the LXMF message codec on native platform: 1. testPackContentRoundtrip — fixarray(4) structure 2. testPackContentBinEncoding — title/content as bin (0xC4), not str 3. testPackFullOpportunistic — wire: [src:16][sig:64][packed] 4. testPackFullDirect — wire: [dest:16][src:16][sig:64][packed] 5. testUnpackFull — pack → unpack → verify fields 6. testSignatureVerification — Ed25519 sign/verify roundtrip 7. testMessageIdComputation — deterministic SHA256 hash 8. testEmptyTitleAndContent — edge case: empty strings 9. testUnicodeContent — UTF-8 content round-trip 10. testMaxSizeContent — 280 bytes (near opportunistic limit) All 10 tests pass on native17. Uses same deterministic seeds as test_cross_compat for consistency.
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