lune/tests/task/fcheck.luau

14 lines
260 B
Lua
Raw Normal View History

2023-01-24 17:52:41 +00:00
return function(index: number, type: string, value: any)
if typeof(value) ~= type then
console.error(
string.format(
"Expected argument #%d to be of type %s, got %s",
index,
type,
console.format(value)
)
)
process.exit(1)
end
end