Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mp_ds2md.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mp_ds2md.sas macro
4
5 <h4> SAS Macros </h4>
6 @li mp_ds2md.sas
7 @li mp_assert.sas
8
9**/
10
11%mp_ds2md(sashelp.class,outref=md)
12
13data _null_;
14 infile md;
15 input;
16 call symputx(cats('test',_n_),_infile_);
17 if _n_=4 then stop;
18run;
19
20%mp_assert(
21 iftrue=("&test1"="|NAME:$8.|SEX:$1.|AGE:best.|HEIGHT:best.|WEIGHT:best.|"),
22 desc=Checking header row,
23 outds=work.test_results
24)
25%mp_assert(
26 iftrue=("&test2"="|---|---|---|---|---|"),
27 desc=Checking divider row,
28 outds=work.test_results
29)
30%mp_assert(
31 iftrue=("&test3"="|`Alfred `|`M `|`14 `|`69 `|`112.5 `|"),
32 desc=Checking data row,
33 outds=work.test_results
34)