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

chore: updating header, adding stop statement in mp_makedata(), writing test for mf_existvar()

This commit is contained in:
munja
2021-12-23 19:29:37 +00:00
parent 66b0c9e77e
commit 6c6b55dcea
3 changed files with 29 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
/**
@file
@brief Testing mf_existvar macro
<h4> SAS Macros </h4>
@li mf_existvar.sas
@li mp_assert.sas
**/
%mp_assert(
iftrue=(%mf_existvar(sashelp.class,age)=1),
desc=Checking existing var exists,
outds=work.test_results
)
%mp_assert(
iftrue=(%mf_existvar(sashelp.class,isjustanumber)=0),
desc=Checking non existing var does not exist,
outds=work.test_results
)