|
Macros for SAS Application Developers
https://github.com/sasjs/core |
Generic assertion. More...
Go to the source code of this file.
Useful in the context of writing sasjs tests. The results of the test are appended to the &outds. table.
Example usage:
%mp_assert(iftrue=(1=1), desc=Obviously true ) %mp_assert(iftrue=(1=0), desc=Will fail )
| [in] | iftrue= | (1=1) A condition where, if true, the test is a PASS. Else, the test is a fail. | ||||||
| [in] | desc= | (Testing observations) The user provided test description | ||||||
| [out] | outds= | (work.test_results) The output dataset to contain the results. If it does not exist, it will be created, with the following format:
|
Definition in file mp_assert.sas.