You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
541 B
19 lines
541 B
|
|
-- Implicit in the fact that it's already using assertTrue()
|
|
assertTrue (mainGlobal2 == 'mainGlbl', 'Files loaded by loadfile() should have access to the same global namespace')
|
|
assertTrue (mainLocal == nil, 'Files loaded by loadfile() should not have access to the local scope of the caller')
|
|
|
|
local testModName = ...
|
|
assertTrue (testModName == nil, 'Files loaded by loadfile() should not be passed any values in varargs.')
|
|
|
|
|
|
mainGlobal1 = 'innerGlbl'
|
|
local innerLocal = 'innerLoc'
|
|
|
|
|
|
return {
|
|
getValue = function ()
|
|
return 'moo'
|
|
end
|
|
}
|