Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mf_getengine.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mf_getengine macro
4
5 <h4> SAS Macros </h4>
6 @li mf_getengine.sas
7 @li mp_assert.sas
8 @li mp_assertscope.sas
9
10**/
11
12%mp_assertscope(SNAPSHOT)
13%put scope check:%mf_getengine(WORK);
14%mp_assertscope(COMPARE,
15 desc=Checking that mf_getengine does not leak scope,
16 outds=work.test_results
17)
18
19%mp_assert(
20 iftrue=(%mf_getengine(WORK)=V9),
21 desc=Checking that the WORK library reports the V9 engine,
22 outds=work.test_results
23)
24
25%mp_assert(
26 iftrue=(%mf_getengine(SASHELP)=V9),
27 desc=Checking that the SASHELP library reports the V9 engine,
28 outds=work.test_results
29)
30
31%mp_assert(
32 iftrue=(%mf_getengine(sashelp.class)=V9),
33 desc=Checking that a two level libds reference is accepted,
34 outds=work.test_results
35)
36
37%mp_assert(
38 iftrue=(%length(%mf_getengine(nosuchlib))=0),
39 desc=Checking that a library that is not assigned returns nothing,
40 outds=work.test_results
41)