- Shop.luau: 손님·주문·조리·서빙·구매 순수 로직(lune 단위 테스트, 시뮬레이터 공용) - 서버: World(부지 6칸), PlotBuilder(파트 모형), PlotController, Npc(트윈 이동), Data(ProfileStore), Receipts(결제 1회 = 지급 1회), Game - 클라이언트: Hud(돈·다음 업그레이드·목록·결제·언어·튜토리얼), 내 조리대 전용 버튼, 튜토리얼 화살표, 주인 전용 테스트 버튼 - 2단계 업그레이드 10개 추가, 파이썬 시뮬레이터를 실제 로직 기반 tools/sim.luau로 교체 - tools/cloud.py: 업로드, 원격 Luau 실행, 게임패스·개발자 상품 생성, 서버 인원 설정 - tests/cloud/integration.luau: 로블록스 서버 통합 테스트 514개 통과 - check.sh에 luau-lsp 타입 검사 추가, ProfileStore 고정 버전 포함 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
525 B
Lua
26 lines
525 B
Lua
-- 아주 작은 테스트 도우미: 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
|