This commit is contained in:
2025-09-29 00:03:57 -04:00
parent 5111182a4b
commit abd573f686
64 changed files with 2407 additions and 157 deletions

19
disks/1h/bin_/unitest Normal file
View File

@@ -0,0 +1,19 @@
local errors={}
local function tables_equal(t1, t2)
if #t1 ~= #t2 then return false end
for i = 1, #t1 do
if t1[i] ~= t2[i] then return false end
end
return true
end
local function run_test(name, test_func)
local status, err = pcall(test_func)
if status then
print("[PASS] " .. name)
else
print("[FAIL] " .. name .. ": " .. err)
errors[name]=err
end
end