示例工程 22-scheduling-and-tasks
22-scheduling-and-tasks/01-round-robin-scheduler/_test.lua
-- @runtimes lua54 luajit
local h = require("harness")
local m = require("main")
h.describe("轮转调度", function()
h.it("交替执行", function()
local r = m.run(function() end)
h.eq(r.order, { "a1", "b1", "a2", "b2" })
end)
end)
h.run()