From fa5bceb3536d4fb409ff33d40935280f616a660e Mon Sep 17 00:00:00 2001 From: Axel Meyer Date: Sat, 16 May 2026 01:19:40 +0200 Subject: [PATCH] feat(input-test): migrate to test-lib (manifest.lib + run_tests) (Test-Opt Phase 3.2) Per ADR-0037 Tests-as-Libs Convention. Renamed on Gitea + moved locally. History preserved. --- init.lua | 6 +++++- manifest.module => manifest.lib | 7 +++---- 2 files changed, 8 insertions(+), 5 deletions(-) rename manifest.module => manifest.lib (62%) diff --git a/init.lua b/init.lua index e5b2c0e..a9a0776 100644 --- a/init.lua +++ b/init.lua @@ -4,7 +4,9 @@ local input = require("lib-core.input") -function init(ctx) +local M = {} + +function M.run_tests(ctx) -- Engine surface present (7 assertions) engine.test.assert(type(engine.input.MOUSE_LEFT) == "number", "MOUSE_LEFT constant is integer") @@ -52,3 +54,5 @@ function init(ctx) engine.test.equals(input.action_count(), 3, "key-only bind still works after BIND_MAP refactor") end + +return M diff --git a/manifest.module b/manifest.lib similarity index 62% rename from manifest.module rename to manifest.lib index 6a0bffa..d032325 100644 --- a/manifest.module +++ b/manifest.lib @@ -1,10 +1,9 @@ { "id": "lib-core.input-test", - "kind": "test-module", + "role": "test", "version": "0.1.0", - "api": "^0.1", - "entry_point": "init.lua", + "api_min": "0.1", "deps": [ {"id": "lib-core.input", "version": "0.4.0"} ] -} +} \ No newline at end of file