mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-25 22:53:22 +00:00
![SquidDev](/assets/img/avatar_default.png)
- Remove stub for table.pack/table.unpack. - Remove Lua 5.3 bitlib stub. We're not on 5.3, there's no point emulating it. - Change peripheral.call to correctly adjust the error level. This is a terrible hack, but I believe the only good option. It'd be good to remove load as well, but it's a little more complex due to our injecting of _ENV. Closes #363
10 lines
370 B
Lua
10 lines
370 B
Lua
local capture = require "test_helpers".capture_program
|
|
|
|
describe("The peripherals program", function()
|
|
it("says when there are no peripherals", function()
|
|
stub(peripheral, 'getNames', function() return {} end)
|
|
expect(capture(stub, "peripherals"))
|
|
:matches { ok = true, output = "Attached Peripherals:\nNone\n", error = "" }
|
|
end)
|
|
end)
|