getf SCI/util/testexamples.sci reinit_for_test() %U=mopen('SCI/tests/automatic_tests/funcprot_data.ref','rb'); %ans = funcprot(1); if load_ref('%ans') then bugmes();quit;end, %ans = deff('[x]=foo(a)', 'x=a'); if load_ref('%ans') then bugmes();quit;end, %ans = deff('[x]=foo(a)', 'x=a+1'); Warning :redefining function: foo if load_ref('%ans') then bugmes();quit;end, foo = 33; Warning :redefining function: foo if load_ref('foo') then bugmes();quit;end, %ans = funcprot(0); if load_ref('%ans') then bugmes();quit;end, %ans = deff('[x]=foo(a)', 'x=a'); if load_ref('%ans') then bugmes();quit;end, %ans = deff('[x]=foo(a)', 'x=a+1'); if load_ref('%ans') then bugmes();quit;end, foo = 33; if load_ref('foo') then bugmes();quit;end, xdel_run(winsid()); mclose(%U);