mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 14:10:43 +00:00
Contributors had no written path for adding a form through the registry, and the generator's rejection rules had no direct tests: a disabled check would only show up if the real registry happened to break it. The new unit tests feed small in-memory registries and a hand-written snapshot that each break one rule, check that the real registry passes, that render is deterministic and independent of key order, and that the CLI's validate, generate and --check modes exit as documented. Each of 44 deliberate generator mutations makes at least one test fail. The guide covers the files, every field and its allowed values, what the validator checks, what the generator does not do, the commands, and a worked example on s_addc_u32. Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>