Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mddl_assert.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Test the assertion result DDL and model assertion output
4
5 <h4> SAS Macros </h4>
6 @li mddl_assert.sas
7 @li mp_assert.sas
8 @li mp_assertmodel.sas
9 @li mp_assertscope.sas
10
11**/
12
13%mddl_assert(work.assert_schema)
14%mp_assert(iftrue=(%sysfunc(exist(work.assert_schema))=1),
15 desc=Assertion DDL creates the requested table)
16
17%mp_assertscope(SNAPSHOT)
18%mddl_assert(work.custom_schema)
19%mp_assertscope(COMPARE,desc=Assertion DDL does not leak macro variables)
20
21/* Keep the output under test separate from the schema comparison result. */
22%mp_assertmodel(work.assert_schema,base=work.assert_schema,
23 desc=Create model output,outds=work.model_output)
24%mp_assertmodel(work.model_output,base=work.assert_schema,
25 desc=Model assertion output matches the assertion DDL)