Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mf_isdir.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mf_isdir macro
4
5 <h4> SAS Macros </h4>
6 @li mf_isdir.sas
7 @li mp_assert.sas
8
9**/
10
11%let workdir=%sysfunc(pathname(work));
12
13%mp_assert(
14 iftrue=(%mf_isdir(&workdir)=1),
15 desc=The session work folder is a directory,
16 outds=work.test_results
17)
18
19%mp_assert(
20 iftrue=(%mf_isdir(&workdir/no_such_folder_here)=0),
21 desc=A path that does not exist is not a directory,
22 outds=work.test_results
23)