Macros for SAS Application Developers
https://github.com/sasjs/core
mp_init.test.sas
Go to the documentation of this file.
1 /**
2  @file
3  @brief Testing mp_gsubfile.sas macro
4 
5  <h4> SAS Macros </h4>
6  @li mp_init.sas
7  @li mp_assert.sas
8 
9 **/
10 
11 /**
12  * Test 1 - mp_init.sas actually already ran as part of testinit
13  * So lets test to make sure it will not run again
14  */
15 
16 %let initial_value=&sasjs_init_num;
17 
18 %mp_init()
19 
20 %mp_assert(
21  iftrue=("&initial_value"="&sasjs_init_num"),
22  desc=Check that mp_init() did not run twice,
23  outds=work.test_results
24 )