11 lines
422 B
Luau
11 lines
422 B
Luau
--!strict
|
|
return function(timeline: any)
|
|
local expected = {{0,"Briefing",5},{5,"Countdown",8},{8,"Live",78},{77.99,"Live",78},{78,"FinalPush",108},{108,"Ended",108}}
|
|
for _, row in expected do
|
|
local stage, boundary = timeline.stage(0,108,5,3,30,row[1])
|
|
assert(stage == row[2] and boundary == row[3])
|
|
end
|
|
assert(timeline.stage(0,12,5,3,30,7) == "Countdown")
|
|
assert(timeline.stage(0,12,5,3,30,8) == "FinalPush")
|
|
end
|