00aaaf24d4ac5d80cc02f0340c0531c10ff676b5
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
lib-core.inventory-list-display-test
Test module for lib-core.inventory-list-display. Runs 9 assertions
headless via engine.test.* (TAP output).
Version: 0.1.0 Lib-ID: lib-core.inventory-list-display-test Role: test Requires: lib-core.inventory-list-display v0.1.0, lib-core.inventory-list v0.1.0, lib-core.composition v0.2.0
Running
export PATH="/c/msys64/mingw64/bin:$PATH"
cd ~/Projects/Sporel/sporel-engine
SPOREL_LIBS_DIR=~/Projects/Sporel/sporel-libs SPOREL_CI=1 SPOREL_LOG_STDERR=1 \
./build/Sporel.exe --test-libs=lib-core.inventory-list-display-test 2>&1 | tail -15
Expected: pass=N fail=0 where N >= 9.
Assertions
createreturns widget_def withrender,handle_input, and correcttitlecreatewith a non-container entity loud-errorsregister_action+unregister_actionround-trip completes without error- Duplicate action label loud-errors
- Non-function callback loud-errors
- Default action-set is empty;
unregister_actionon unknown label is a no-op _test_get_rowsreturns items ininventory.contentsorder- Default icon-resolver reads
sprite_atlasandsprite_uv.*from item properties - Custom icon-resolver is invoked after
set_icon_resolver
Description
Languages
Lua
100%