lune/.lune/tests/process/spawn.luau

12 lines
377 B
Text
Raw Normal View History

2023-01-21 04:40:31 +00:00
local result = process.spawn("ls", {
"-a",
})
assert(result.ok, "Failed to spawn child process")
assert(result.stderr == "", "Stderr was not empty")
assert(result.stdout ~= "", "Stdout was empty")
assert(string.find(result.stdout, "Cargo.toml") ~= nil, "Missing Cargo.toml in output")
assert(string.find(result.stdout, ".gitignore") ~= nil, "Missing .gitignore in output")