1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-25 19:07:39 +00:00

Add a few Checks (#248)

- Add some basic tests for several built-in programs.
 - Preserve the state of the shell between tests
This commit is contained in:
JakobDev
2019-06-14 09:15:12 +02:00
committed by SquidDev
parent 138a2cf08f
commit 717ab69093
12 changed files with 234 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
local capture = require "test_helpers".capture_program
describe("The edit program", function()
it("displays its usage when given no argument", function()
multishell = nil
expect(capture(stub, "edit"))
:matches { ok = true, output = "Usage: edit <path>\n", error = "" }
end)
end)