mirror of
https://github.com/sasjs/core.git
synced 2026-01-05 00:20:05 +00:00
fix: preventing merged cells in sas-generated markdown tables.
BREAKING CHANGE: renamed mp_mdtablewrite.sas to mp_ds2md.sas and modified the parameter from fref to outref. This makes it more consistent with the other mp_ds2xx range of macros.
This commit is contained in:
34
tests/crossplatform/mp_ds2md.test.sas
Normal file
34
tests/crossplatform/mp_ds2md.test.sas
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
@file
|
||||
@brief Testing mp_ds2md.sas macro
|
||||
|
||||
<h4> SAS Macros </h4>
|
||||
@li mp_ds2md.sas
|
||||
@li mp_assert.sas
|
||||
|
||||
**/
|
||||
|
||||
%mp_ds2md(sashelp.class,outref=md)
|
||||
|
||||
data _null_;
|
||||
infile md;
|
||||
input;
|
||||
call symputx(cats('test',_n_),_infile_);
|
||||
if _n_=4 then stop;
|
||||
run;
|
||||
|
||||
%mp_assert(
|
||||
iftrue=("&test1"="|NAME:$8.|SEX:$1.|AGE:best.|HEIGHT:best.|WEIGHT:best.|"),
|
||||
desc=Checking header row,
|
||||
outds=work.test_results
|
||||
)
|
||||
%mp_assert(
|
||||
iftrue=("&test2"="|---|---|---|---|---|"),
|
||||
desc=Checking divider row,
|
||||
outds=work.test_results
|
||||
)
|
||||
%mp_assert(
|
||||
iftrue=("&test3"="|`Alfred `|`M `|`14 `|`69 `|`112.5 `|"),
|
||||
desc=Checking data row,
|
||||
outds=work.test_results
|
||||
)
|
||||
Reference in New Issue
Block a user