Warning: file_get_contents(http://localhost:8000/calc?cmd=559&userid=0&debug=1): failed to open stream: Cannot assign requested address in /var/www/tb/show-snippet.php on line 158
Sandboxing Test 2 [559]

Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #559 // Sandboxing Test 2

Lua code - System test

s = new_sandbox_1()
s.run("a=5")
assert(s.get_inner("a") == 5)

assert(a == nil) -- just checking that we actually have a sandbox :)

return true

Author comment

Began life as a copy of #558

test run  test run with input  download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #559
Snippet name: Sandboxing Test 2
Eternal ID of this version: #559/1
Text MD5: 1f9edf2f2c0db292fc2262ed2f465048
Author: stefan
Category:
Type: Lua code - System test
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-04-05 17:53:09
Source code size: 151 bytes / 7 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 723 / 164
Referenced in: [show references]