20 lines
524 B
Lua
20 lines
524 B
Lua
|
|
local SUITE = require('TestSuite').new('resilience')
|
|
SUITE:setEnviroment{
|
|
--format = require('pretty')
|
|
}
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
SUITE:addTest('library', function ()
|
|
-- This tests whether one could load the library with an empty env, without
|
|
-- an error.
|
|
local chunk = loadfile('./library.lua')
|
|
setfenv(chunk, {})
|
|
local library = chunk()
|
|
end)
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
return SUITE
|