local p=require("\064\102\114\107\116\101\115\116\047\102\114\107\116\101\115\116")local j=p.test local y=p.assert.check local a=p.assert.require local k=require("\046\046\047\115\114\099\047\090\097\112\112\121\047\122\097\112")return function()j.case("\114\117\110\115 \119\105\116\104 \118\097\108\105\100 \073\068\076",function()local p=k("\102\117\110\099\116 \084\101\115\116 \061 \123\n    \099\097\108\108\058 \065\115\121\110\099\044\n    \097\114\103\115\058 \040\070\111\111\058 \117\056\044 \066\097\114\058 \115\116\114\105\110\103\041\044\n    \114\101\116\115\058 \101\110\117\109 \123 \083\117\099\099\101\115\115\044 \070\097\105\108 \125\n\125\n        ",true)a.not_nil(p.client)a.not_nil(p.server)end)end
local frktest = require("@frktest/frktest")
local test = frktest.test
local check = frktest.assert.check
local req = frktest.assert.require

local zap = require("../src/Zappy/zap")

return function()
    test.case("runs with valid IDL", function()
        local resp = zap([[
funct Test = {
    call: Async,
    args: (Foo: u8, Bar: string),
    rets: enum { Success, Fail }
}
        ]], true)

        req.not_nil(resp.client)
        req.not_nil(resp.server)
    end)

end