mirror of
https://github.com/sasjs/core.git
synced 2026-01-05 00:20:05 +00:00
feat: new mfv_getfolderpath macro
+ associated test created to support the fix for https://git.datacontroller.io/dc/dc/issues/171
This commit is contained in:
31
tests/viyaonly/mfv_getfolderpath.test.sas
Normal file
31
tests/viyaonly/mfv_getfolderpath.test.sas
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
@file
|
||||
@brief Testing mfv_getfolderpath macro function
|
||||
|
||||
<h4> SAS Macros </h4>
|
||||
@li mf_uid.sas
|
||||
@li mfv_getfolderpath.sas
|
||||
@li mfv_getpathuri.sas
|
||||
@li mp_assert.sas
|
||||
@li mv_createfolder.sas
|
||||
|
||||
**/
|
||||
|
||||
options mprint sgen;
|
||||
|
||||
%let folder=%mf_uid();
|
||||
/* create a folder */
|
||||
%mv_createfolder(path=&mcTestAppLoc/&folder)
|
||||
%mp_assert(
|
||||
iftrue=(&syscc=0),
|
||||
desc=no errs on folder creation
|
||||
)
|
||||
|
||||
%let uri=%mfv_getpathuri(&mcTestAppLoc/&folder);
|
||||
%put %mfv_getfolderpath(&uri);
|
||||
|
||||
%mp_assert(
|
||||
iftrue=("%mfv_getfolderpath(&uri)"="&mcTestAppLoc/&folder"),
|
||||
desc=Check if correct folder was returned
|
||||
)
|
||||
|
||||
@@ -14,7 +14,7 @@ options mprint sgen;
|
||||
|
||||
%let file=%mf_uid();
|
||||
|
||||
/* create a folder */
|
||||
/* create a file */
|
||||
filename somefile temp;
|
||||
data _null_;
|
||||
file somefile;
|
||||
|
||||
Reference in New Issue
Block a user