diff --git a/test/test_resilience.lua b/test/test_resilience.lua new file mode 100644 index 0000000..1af67fb --- /dev/null +++ b/test/test_resilience.lua @@ -0,0 +1,19 @@ + +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