Macros for SAS Application Developers
https://github.com/sasjs/core
mf_getfmtlist.test.sas
Go to the documentation of this file.
1 /**
2  @file
3  @brief Testing mf_getfmtlist macro
4 
5  <h4> SAS Macros </h4>
6  @li mf_getfmtlist.sas
7  @li mp_assert.sas
8 
9 **/
10 
11 %mp_assert(
12  iftrue=(
13  "%mf_getfmtlist(sashelp.prdsale)"="DOLLAR $CHAR W MONNAME"
14  ),
15  desc=Checking basic numeric,
16  outds=work.test_results
17 )
18 
19 %mp_assert(
20  iftrue=(
21  "%mf_getfmtlist(sashelp.shoes)"="$CHAR BEST DOLLAR"
22  ),
23  desc=Checking basic char,
24  outds=work.test_results
25 )
26 
27 %mp_assert(
28  iftrue=(
29  "%mf_getfmtlist(sashelp.demographics)"="BEST Z $CHAR COMMA PERCENTN"
30  ),
31  desc=Checking longer numeric,
32  outds=work.test_results
33 )