diff --git a/README.md b/README.md index 15291e8..b00fed0 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# sporel-module-lib-sporel.launcher-test +# sporel-lib-management.launcher-test -P.3.4 reference test-module — validates `lib-sporel.launcher` FSM contracts +P.3.4 reference test-module — validates `lib-management.launcher` FSM contracts and engine-surface existence via the `engine.test.*` assertion surface. -- Module-ID: `lib-sporel.launcher-test` +- Module-ID: `lib-management.launcher-test` - Version: `0.1.0` - Kind: `test-module` (headless; runs init() once + exits) - Note: Embeds its own byte-identical copy of `fsm.lua` (Sporel-resolver does @@ -12,7 +12,7 @@ and engine-surface existence via the `engine.test.*` assertion surface. ## Run ```bash -Sporel.exe --test-libs=lib-sporel.launcher-test +Sporel.exe --test-libs=lib-management.launcher-test ``` Output is TAP version 13 on stdout; exit-code = failure-count (0 = all pass). @@ -46,4 +46,4 @@ copy; mutations reverted after observation. ### Tested Production-Lib Surface -`lib-sporel.launcher` v0.1.0 (FSM component) — Tests cover: all 5 explicit FSM transitions (`list+esc`, `quit_confirm+esc`, `quit_confirm+enter`, `quit_confirm+click_yes`, `quit_confirm+click_no`), stability for unhandled events (`list+click_module`), unknown-state passthrough, and engine-surface existence for `engine.module.list`, `engine.module.dir_of`, `engine.render.draw_text`, `engine.render.measure_text`. +`lib-management.launcher` v0.1.0 (FSM component) — Tests cover: all 5 explicit FSM transitions (`list+esc`, `quit_confirm+esc`, `quit_confirm+enter`, `quit_confirm+click_yes`, `quit_confirm+click_no`), stability for unhandled events (`list+click_module`), unknown-state passthrough, and engine-surface existence for `engine.module.list`, `engine.module.dir_of`, `engine.render.draw_text`, `engine.render.measure_text`. diff --git a/fsm.lua b/fsm.lua index 4bbfe3f..939222c 100644 --- a/fsm.lua +++ b/fsm.lua @@ -1,5 +1,5 @@ -- Sporel Launcher — pure-Lua finite state machine. --- No engine.* calls; testable directly by lib-sporel.launcher-test. +-- No engine.* calls; testable directly by lib-management.launcher-test. local M = {} diff --git a/init.lua b/init.lua index 139de80..9826bc9 100644 --- a/init.lua +++ b/init.lua @@ -1,15 +1,15 @@ --- lib-sporel.launcher-test — P.3.4 +-- lib-management.launcher-test — P.3.4 -- 11 assertions: 5 FSM transitions + 1 FSM stability + 5 Engine-Surface existence. -- (measure_text runtime-behavior check dropped — needs Raylib font, not loaded in headless test-mode.) -- Pattern follows P.3.1 Test-Module-Pattern; TAP output via engine.test.* --- FSM-Source: byte-identical Kopie aus modules/lib-sporel.launcher/fsm.lua. +-- FSM-Source: byte-identical Kopie aus modules/lib-management.launcher/fsm.lua. -- Sporel-Resolver lehnt module-als-dep ab (nur lib-deps werden resolved), -- daher hat dieses Test-Modul seine eigene fsm.lua. Drift wird via Smoke- -- diff-check verhindert (siehe smoke.sh P0-S15-pre). local M = {} -local fsm = dofile(engine.module.dir_of("lib-sporel.launcher-test") .. "/fsm.lua") +local fsm = dofile(engine.module.dir_of("lib-management.launcher-test") .. "/fsm.lua") function M.run_tests(ctx) -- FSM transitions (5) diff --git a/manifest.core b/manifest.core index 66e0b0a..04bbb47 100644 --- a/manifest.core +++ b/manifest.core @@ -1,5 +1,5 @@ { - "id": "lib-sporel.launcher-test.core", + "id": "lib-management.launcher-test.core", "kind": "lib", "version": "0.1.0", "license": "Proprietary" diff --git a/manifest.lib b/manifest.lib index 1584661..439d9a5 100644 --- a/manifest.lib +++ b/manifest.lib @@ -1,5 +1,5 @@ { - "id": "lib-sporel.launcher-test", + "id": "lib-management.launcher-test", "role": "test", "version": "0.1.0", "api_min": "0.1",