git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12793 626c5289-ae23-0410-ae9c-e8d60b6d4f22
21 lines
426 B
Mathematica
21 lines
426 B
Mathematica
# file: runme_nogl_func_base.m
|
|
|
|
# test whether module can be loaded in a function
|
|
# before the base context (no global cvar)
|
|
|
|
1;
|
|
|
|
function func
|
|
example -noglobal
|
|
assert(example.cvar.ivar == example.ifunc())
|
|
endfunction
|
|
|
|
# test loading in a function
|
|
func
|
|
|
|
# test a second time to check everything works
|
|
func
|
|
|
|
# test that everything works from the base context
|
|
example -noglobal
|
|
assert(example.cvar.ivar == example.ifunc())
|