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