Menu

#21 Make SASUnit usable in a data step

default
open
nobody
None
v1.1
not_relevant
Enhancement_Request
New_Features
3-moderate
2014-07-29
2012-07-15
No

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).

Discussion

  • Andreas Mangold

    Andreas Mangold - 2012-07-15

    It should be possible to use PROC FCMP in any test scenario. Where else should it be used?

     
  • Andreas Menrath

    Andreas Menrath - 2012-07-16

    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
  • Andreas Menrath

    Andreas Menrath - 2012-07-16
     
  • Andreas Mangold

    Andreas Mangold - 2012-07-24
    • 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
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB