mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-11-04 17:16:20 +00:00
13 lines
376 B
Lua
13 lines
376 B
Lua
|
local capture = require "test_helpers".capture_program
|
||
|
|
||
|
describe("The time program", function()
|
||
|
|
||
|
it("displays time", function()
|
||
|
local time = textutils.formatTime(os.time())
|
||
|
local day = os.day()
|
||
|
|
||
|
expect(capture(stub, "time"))
|
||
|
:matches { ok = true, output = "The time is "..time.." on Day "..day.."\n", error = "" }
|
||
|
end)
|
||
|
end)
|