diff --git a/init.lua b/init.lua index 00867c2..093423a 100644 --- a/init.lua +++ b/init.lua @@ -4,7 +4,9 @@ local command = require("lib-core.command") local T = engine.test -function init(ctx) +local M = {} + +function M.run_tests(ctx) -- Mocked-Unit Helper: closure-state simulates a module's unit-state. local function make_unit(x0, y0, speed) local state = { x = x0, y = y0 } @@ -85,3 +87,5 @@ function init(ctx) local ok2 = pcall(function() command.move_to({99999}, 0, 0) end) T.assert(not ok2, "move_to with unknown handle errors") end + +return M diff --git a/manifest.lib b/manifest.lib new file mode 100644 index 0000000..4463da5 --- /dev/null +++ b/manifest.lib @@ -0,0 +1,11 @@ +{ + "id": "lib-core.command-test", + "role": "test", + "version": "0.1.0", + "api_min": "0.1", + "deps": [ + {"id": "lib-core.command", "version": "0.1.0"}, + {"id": "lib-core.input", "version": "0.4.0"}, + {"id": "lib-core.camera", "version": "0.3.0"} + ] +} \ No newline at end of file diff --git a/manifest.module b/manifest.module deleted file mode 100644 index eb00609..0000000 --- a/manifest.module +++ /dev/null @@ -1,12 +0,0 @@ -{ - "id": "lib-core.command-test", - "version": "0.1.0", - "kind": "test-module", - "api": "^0.1", - "entry_point": "init.lua", - "deps": [ - { "id": "lib-core.command", "version": "0.1.0" }, - { "id": "lib-core.input", "version": "0.4.0" }, - { "id": "lib-core.camera", "version": "0.3.0" } - ] -}