mirror of
https://github.com/sasjs/core.git
synced 2026-01-09 02:10:06 +00:00
Merge branch 'main' into issue373
This commit is contained in:
41
tests/x-platform/mx_getgroups.test.sas
Normal file
41
tests/x-platform/mx_getgroups.test.sas
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
@file
|
||||
@brief Testing mx_getgroups.test.sas macro
|
||||
|
||||
Be sure to run <code>%let mcTestAppLoc=/Public/temp/macrocore;</code> when
|
||||
running in Studio
|
||||
|
||||
<h4> SAS Macros </h4>
|
||||
@li mf_nobs.sas
|
||||
@li mf_getuser.sas
|
||||
@li mp_assert.sas
|
||||
@li mx_getgroups.sas
|
||||
|
||||
**/
|
||||
|
||||
|
||||
%mx_getgroups(outds=work.test1)
|
||||
|
||||
%mp_assert(
|
||||
iftrue=(%mf_nobs(work.test1)>0),
|
||||
desc=groups were found,
|
||||
outds=work.test_results
|
||||
)
|
||||
%mp_assertcols(work.test1,
|
||||
cols=groupuri groupname groupdesc,
|
||||
test=ALL,
|
||||
desc=check all columns exist
|
||||
)
|
||||
|
||||
%mx_getgroups(outds=work.test2,user=%mf_getuser())
|
||||
|
||||
%mp_assert(
|
||||
iftrue=(%mf_nobs(work.test2)>0),
|
||||
desc=groups for current user were found,
|
||||
outds=work.test_results
|
||||
)
|
||||
%mp_assertcols(work.test2,
|
||||
cols=groupuri groupname groupdesc,
|
||||
test=ALL,
|
||||
desc=check all columns exist
|
||||
)
|
||||
Reference in New Issue
Block a user