2 Commits

Author SHA1 Message Date
Calic
73298a99aa fix(test): use composition.reg_id for entity equality in assertions
get_children() returns fresh userdata wrappers on each call; without
an __eq metamethod, Lua pointer equality fails between two wrappers of
the same engine entity. Use composition.reg_id (a stable property on
all composition entities) for same_entity() comparisons in assertions
2b, 3b, 9, 10, 11b.
2026-06-13 17:41:59 +02:00
Calic
3ae9799d4d initial: inventory-list-test v0.1.0 — 12 assertions
Covers engine spike (multi-slot children), add/remove/contains/count
round-trips, Loud-Error paths (no container block, no stack_mode,
stack_mode=stack), renderable-tag toggle via set_tag, and slot-naming
reconstruction from get_children (simulated post-reload state).
2026-06-13 17:33:18 +02:00