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