mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
18 lines
493 B
Lua
18 lines
493 B
Lua
local fs = require("@lune/fs")
|
|
local process = require("@lune/process")
|
|
local task = require("@lune/task")
|
|
|
|
local function assert(condition, err)
|
|
if not condition then
|
|
task.spawn(error, err)
|
|
process.exit(0)
|
|
end
|
|
end
|
|
|
|
local path = process.cwd .. "asdfghjkl"
|
|
|
|
assert(fs.isDir(path), "Process should exit with success")
|
|
assert(fs.isDir(path), "Process should exit with success")
|
|
assert(fs.isDir(path), "Process should exit with success")
|
|
|
|
error("Process should have exited with success...")
|