mirror of
https://github.com/pesde-pkg/tooling.git
synced 2025-05-04 10:43:58 +01:00
16 lines
753 B
Text
16 lines
753 B
Text
local toolchainlib = require("../lune_packages/core")
|
|
local process = require("@lune/process")
|
|
local fs = require("@lune/fs")
|
|
|
|
return function(version)
|
|
-- not working, needing support
|
|
-- process.args = { "bins/zap/tests/input.zap" }
|
|
local success, err = pcall(require, "bins/zap/init.luau")
|
|
assert(success, `failed to execute zap: {err}`)
|
|
|
|
local client_signature = `\n-- Client generated by Zap v{version} (https://github.com/red-blox/zap)`
|
|
assert(fs.readFile("bins/zap/tests/output/client.luau"):match(client_signature), `invalid output`)
|
|
|
|
local server_signature = `\n-- Server generated by Zap v{version} (https://github.com/red-blox/zap)`
|
|
assert(fs.readFile("bins/zap/tests/output/server.luau"):match(server_signature), `invalid output`)
|
|
end
|