Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mcf_init.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mcf_init.sas macro
4
5 <h4> SAS Macros </h4>
6 @li mcf_init.sas
7 @li mp_assert.sas
8
9**/
10
11%mp_assert(
12 iftrue=(%mcf_init(test)=0),
13 desc=Check if new func returns 0
14)
15%mp_assert(
16 iftrue=(&syscc=0),
17 desc=No errs on basic invocation
18)
19%mp_assert(
20 iftrue=(%mcf_init(test)=1),
21 desc=Check if second invocation returns 1
22)
23%mp_assert(
24 iftrue=(&syscc=0),
25 desc=No errs on second invocation
26)
27%mp_assert(
28 iftrue=(%mcf_init(test2)=0),
29 desc=Check if new invocation returns 0
30)
31%mp_assert(
32 iftrue=(%mcf_init(test2)=1),
33 desc=Check if second new invocation returns 1
34)
35%mp_assert(
36 iftrue=(%mcf_init(test)=1),
37 desc=Check original returns 1
38)
39%mp_assert(
40 iftrue=(%mcf_init(t)=1),
41 desc=Check subset returns 1
42)
43%mp_assert(
44 iftrue=(&syscc=0),
45 desc=No errs at end
46)