Warning: file_get_contents(http://localhost:8000/calc?cmd=195&userid=0&debug=1): failed to open stream: Cannot assign requested address in /var/www/tb/show-snippet.php on line 158
Assert that system functions appear in outer sandbox (not inner) [195]

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

8
LINES

< > BotCompany Repo | #195 // Assert that system functions appear in outer sandbox (not inner)

Lua code - System test

for k, v in api() do
  if k == 'newCleanEnv' then
    print('newCleanEnv found in the right place! Exiting system test :)')
    return true
  end
end

error 'newCleanEnv not found in outer sandbox'

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

Comments [hide]

ID Author/Program Comment Date
293 #1000604 (pitcher) 2015-08-18 00:54:36
250 #1000610 (pitcher) Edit suggestion:
!636
!629

main {
static Object androidContext;
static String programID;

public static void main(String[] args) throws Exception {
for k, v in api() do
if k == 'newCleanEnv' then
print('newCleanEnv found in the right place! Exiting system test :)')
return true
end
end

error 'newCleanEnv not found in outer sandbox'
}}
2015-08-18 00:52:55

add comment

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 204 [visualize]

Snippet ID: #195
Snippet name: Assert that system functions appear in outer sandbox (not inner)
Eternal ID of this version: #195/1
Text MD5: 6cbaaa39de1a1c03c3a3489a0259836b
Author: stefan
Category: system tests
Type: Lua code - System test
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2014-01-19 05:01:36
Source code size: 204 bytes / 8 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 1073 / 209
Referenced in: [show references]