summary: Use PROC FCMP in SASUnit --> Make SASUnit usable in a data step
Description has changed:
Diff:
--- old+++ new@@ -1 +1 @@-Use PROC FCMP in SASUnit (Andreas Menrath).+It should be possible to run assertions in data steps. This could be done with PROC FCMP or maybe also with macro programs (Andreas Menrath).
component: unknown --> New_Features
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It should be possible to use PROC FCMP in any test scenario. Where else should it be used?
The idea was to create a generic ASSERT-Function or SubRoutine with Proc FCMP which can interact with SASUnit.
That ASSERT function could verify any valid SAS expression and fail a unit test if the expression resolves to false.
example for usage:
data null;
x = \<my datalogic to test>;
assert(x = 42);
/* if (x=42) resolves to true then the test is passed else failed */
run;
Last edit: Andreas Menrath 2012-07-16
see also ticket #29 https://sourceforge.net/p/sasunit/bugs/29/
Diff: