23options nosource nomprint;
25%let luapath=%sysfunc(pathname(work))/ml_json.lua;
30%mp_assertscope(SNAPSHOT)
33%mp_assertscope(COMPARE,
34 desc=ml_json does not leak scope,
36 outds=work.test_results
39%let lua_exists=%sysfunc(fileexist(&luapath));
40%let fref=%mf_getuniquefileref();
41filename &fref
"&luapath";
43 infile &fref lrecl=1024 end=eof;
44 input line $char1024.;
47 if length(line)>80 then call symputx(
'lua_marker',1,
'l');
51 iftrue=(&lua_exists=1),
52 desc=Check json.lua was written to the work directory
55 iftrue=(&lua_marker=1),
56 desc=Check the file keeps records wider than 80 characters
59 iftrue=(&lua_syscc=0),
60 desc=Check including the lua file leaves syscc clean