1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-03 15:40:05 +00:00

fix: increasing limit for mv_getfoldermember.sas, also adding a test, and updating mf_getapploc to search _program by default (and fixing it to work with macro tests, and updating the test for that also)

This commit is contained in:
Allan Bowe
2021-08-20 22:38:56 +03:00
parent 67079d8c17
commit 6161f588a9
5 changed files with 120 additions and 38 deletions

View File

@@ -38,4 +38,12 @@
),
desc=Checking jobs appLoc matches,
outds=work.test_results
)
%mp_assert(
iftrue=(
"%mf_getapploc(/some/area/tests/macros/somemacro.sas)"="/some/area"
),
desc=Checking tests/macros appLoc matches (which has no subfolder),
outds=work.test_results
)

View File

@@ -0,0 +1,24 @@
/**
@file
@brief Testing mv_getfoldermembers macro
@details Testing is performed by ensuring that the tests/macros folder
contains more than 20 results (which also means the default was increased)
<h4> SAS Macros </h4>
@li mf_getapploc.sas
@li mp_assertdsobs.sas
@li mv_getfoldermembers.sas
**/
options mprint;
%mv_getfoldermembers(
root=%mf_getapploc()/tests/macros,
outds=work.results
)
%mp_assertdsobs(work.results,
desc=%str(Ensuring over 20 results found in %mf_getapploc()/tests/macros),
test=ATLEAST 21,
outds=work.test_results
)