mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-13 16:56:49 +00:00
12 lines
322 B
Lua
12 lines
322 B
Lua
local capture = require "test_helpers".capture_program
|
|
|
|
describe("The id program", function()
|
|
|
|
it("displays computer id", function()
|
|
local id = os.getComputerID()
|
|
|
|
expect(capture(stub, "id"))
|
|
:matches { ok = true, output = "This is computer #" .. id .. "\n", error = "" }
|
|
end)
|
|
end)
|