1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-10 10:50:04 +00:00

feat: new mcf_init.sas macro to handle function compilation tracking (and associated test). Further updates to support mp_stackdiffs test results so far

This commit is contained in:
munja
2022-01-24 23:29:43 +01:00
parent 81a17bc0c2
commit 6224844915
14 changed files with 205 additions and 39 deletions

View File

@@ -0,0 +1,46 @@
/**
@file
@brief Testing mcf_init.sas macro
<h4> SAS Macros </h4>
@li mcf_init.sas
@li mp_assert.sas
**/
%mp_assert(
iftrue=(%mcf_init(test)=0),
desc=Check if new func returns 0
)
%mp_assert(
iftrue=(&syscc=0),
desc=No errs on basic invocation
)
%mp_assert(
iftrue=(%mcf_init(test)=1),
desc=Check if second invocation returns 1
)
%mp_assert(
iftrue=(&syscc=0),
desc=No errs on second invocation
)
%mp_assert(
iftrue=(%mcf_init(test2)=0),
desc=Check if new invocation returns 0
)
%mp_assert(
iftrue=(%mcf_init(test2)=1),
desc=Check if second new invocation returns 1
)
%mp_assert(
iftrue=(%mcf_init(test)=1),
desc=Check original returns 1
)
%mp_assert(
iftrue=(%mcf_init(t)=0),
desc=Check subset returns 0
)
%mp_assert(
iftrue=(&syscc=0),
desc=No errs at end
)