summaryrefslogtreecommitdiff
path: root/test/test-supple.lua
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-29 15:55:41 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-29 15:55:41 +0100
commit340c969dabb6d666d5d052ace26c9b656b7a9126 (patch)
tree63f48eefc5f0ec3c18a7bb64481b06ad6add3384 /test/test-supple.lua
parent7712b97c6ce3d0ccc4260586d7706e29d5e9a77f (diff)
downloadsupple-340c969dabb6d666d5d052ace26c9b656b7a9126.tar.gz
SANDBOX: Enough sandboxing to get us further. Testing the wrapper is hard
Diffstat (limited to 'test/test-supple.lua')
-rw-r--r--test/test-supple.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test-supple.lua b/test/test-supple.lua
index fdd08e4..fe7bb9b 100644
--- a/test/test-supple.lua
+++ b/test/test-supple.lua
@@ -14,6 +14,7 @@ local luacov = require 'luacov'
local capi = require 'supple.capi'
local request = require 'supple.request'
local objects = require 'supple.objects'
+local sandbox = require 'supple.sandbox'
local supple = require 'supple'
local testnames = {}
@@ -47,6 +48,11 @@ function suite.objects_passed()
"Supple's objects entry is not supple.objects")
end
+function suite.sandbox_passed()
+ assert(supple.sandbox == sandbox,
+ "Supple's sandbox entry is not supple.sandbox")
+end
+
local count_ok = 0
for _, testname in ipairs(testnames) do
-- print("Run: " .. testname)