-- 아주 작은 테스트 도우미: check(조건, 메시지) 후 done(이름) local failures = 0 local count = 0 local M = {} function M.check(cond: any, msg: string) count += 1 if not cond then failures += 1 print("FAIL " .. msg) end end function M.eq(a: any, b: any, msg: string) M.check(a == b, `{msg} (기대 {tostring(b)}, 실제 {tostring(a)})`) end function M.done(name: string) if failures > 0 then error(`{name}: {failures}/{count} failed`) end print(`{name}: {count} checks passed`) end return M