mirror of
https://github.com/sasjs/core.git
synced 2025-12-10 22:14:35 +00:00
fix: tests for ms_creategroup
This commit is contained in:
@@ -117,6 +117,9 @@ libname &libref JSON fileref=&fref2;
|
|||||||
data &outds;
|
data &outds;
|
||||||
set &libref..root;
|
set &libref..root;
|
||||||
drop ordinal_root;
|
drop ordinal_root;
|
||||||
|
%if &mdebug=1 %then %do;
|
||||||
|
putlog _all_;
|
||||||
|
%end;
|
||||||
run;
|
run;
|
||||||
|
|
||||||
|
|
||||||
@@ -129,11 +132,18 @@ run;
|
|||||||
/* reset options */
|
/* reset options */
|
||||||
options &optval;
|
options &optval;
|
||||||
|
|
||||||
%if &mdebug=1 %then %do;
|
%if &mdebug=0 %then %do;
|
||||||
filename &fref0 clear;
|
filename &fref0 clear;
|
||||||
filename &fref1 clear;
|
filename &fref1 clear;
|
||||||
filename &fref2 clear;
|
filename &fref2 clear;
|
||||||
libname &libref clear;
|
libname &libref clear;
|
||||||
%end;
|
%end;
|
||||||
|
%else %do;
|
||||||
|
data _null_;
|
||||||
|
infile &fref2;
|
||||||
|
input;
|
||||||
|
putlog _infile_;
|
||||||
|
run;
|
||||||
|
%end;
|
||||||
|
|
||||||
%mend ms_creategroup;
|
%mend ms_creategroup;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
%let id=0;
|
%let id=0;
|
||||||
data _null_;
|
data _null_;
|
||||||
set work.test1;
|
set work.test1;
|
||||||
call symputx('id',id);
|
call symputx('id',groupid);
|
||||||
run;
|
run;
|
||||||
%mp_assert(
|
%mp_assert(
|
||||||
iftrue=(&id>0),
|
iftrue=(&id>0),
|
||||||
@@ -36,7 +36,7 @@ run;
|
|||||||
data _null_;
|
data _null_;
|
||||||
set work.test2;
|
set work.test2;
|
||||||
where name="&group";
|
where name="&group";
|
||||||
call symputx('checkid',id);
|
call symputx('checkid',groupid);
|
||||||
run;
|
run;
|
||||||
%mp_assert(
|
%mp_assert(
|
||||||
iftrue=(&checkid=&id),
|
iftrue=(&checkid=&id),
|
||||||
|
|||||||
Reference in New Issue
Block a user