mirror of
https://github.com/lune-org/lune.git
synced 2025-01-08 12:19:13 +00:00
27 lines
733 B
Lua
27 lines
733 B
Lua
local fs = require("@lune/fs") :: typeof(fs)
|
|
local net = require("@lune/net") :: typeof(net)
|
|
local process = require("@lune/process") :: typeof(process)
|
|
local stdio = require("@lune/stdio") :: typeof(stdio)
|
|
local task = require("@lune/task") :: typeof(task)
|
|
|
|
assert(type(fs.move) == "function")
|
|
assert(type(net.request) == "function")
|
|
assert(type(process.cwd) == "string")
|
|
assert(type(stdio.format("")) == "string")
|
|
assert(type(task.spawn(function() end)) == "thread")
|
|
|
|
assert(not pcall(function()
|
|
return require("@") :: any
|
|
end))
|
|
|
|
assert(not pcall(function()
|
|
return require("@lune") :: any
|
|
end))
|
|
|
|
assert(not pcall(function()
|
|
return require("@lune/") :: any
|
|
end))
|
|
|
|
assert(not pcall(function()
|
|
return require("@src") :: any
|
|
end))
|