feat(command-test): migrate to test-lib (manifest.lib + run_tests) (Test-Opt Phase 3.5)
Per ADR-0037 Tests-as-Libs Convention. Renamed on Gitea + moved locally. History preserved.
This commit is contained in:
6
init.lua
6
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
|
||||
|
||||
Reference in New Issue
Block a user