Files
microReticulum/test
DeFiDude fb76b6707b Add test_lxmf_codec: 10 LXMF packing/unpacking/signing tests
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.
2026-03-24 15:38:19 -06:00
..
2023-10-06 17:24:48 -06:00

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