1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-03 15:40:05 +00:00

feat: mf_dedup and associated test

This commit is contained in:
munja
2021-12-15 17:04:08 +00:00
parent a1ce68ce56
commit 3a826dccf1
2 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
/**
@file
@brief Testing mf_dedup macro
<h4> SAS Macros </h4>
@li mf_dedup.sas
@li mp_assert.sas
**/
%let str=One two one two and through and through;
%mp_assert(
iftrue=("%mf_dedup(&str)"="One two one and through"),
desc=Basic test,
outds=work.test_results
)
%mp_assert(
iftrue=("%mf_dedup(&str,outdlm=%str(,))"="One,two,one,and,through"),
desc=Outdlm test,
outds=work.test_results
)