Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mddl_dirlist.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Test directory listing DDL
4
5 <h4> SAS Macros </h4>
6 @li mddl_dirlist.sas
7 @li mp_assert.sas
8 @li mp_assertmodel.sas
9 @li mp_assertscope.sas
10
11**/
12
13%mp_assertscope(SNAPSHOT)
14%mddl_dirlist(work.dirlist_schema)
15%mp_assertscope(COMPARE,desc=Directory DDL does not leak macro variables)
16%mp_assert(iftrue=(%sysfunc(exist(work.dirlist_schema))=1),
17 desc=Directory DDL creates the requested table)
18
19/* Independent contract: do not derive the expected model from the DDL. */
20data work.dirlist_expected;
21 length directory filepath $2000 file_or_folder $6 filename $255 ext $20
22 msg $200 level 8;
23 call missing(of _all_);
24 stop;
25run;
26%mp_assertmodel(work.dirlist_schema,base=work.dirlist_expected,
27 desc=Directory DDL matches the canonical column contract)