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

feat: modification for mp_stackdiffs.sas and associated tests

This commit is contained in:
munja
2022-01-21 13:59:54 +01:00
parent 67df4dffeb
commit b69c3b7a78
2 changed files with 57 additions and 4 deletions

View File

@@ -21,7 +21,8 @@ data work.orig work.deleted work.changed work.appended;
end;
else if _n_ le 20 then do;
output work.orig;
coal=ranuni(1)*-1;
coal=-1;
coaltip='modified';
output work.changed;
end;
else if _n_ le 30 then do;
@@ -251,4 +252,24 @@ run;
test=EQUALS 0
)
/**
* Modifications test - were diffs actually applied?
*/
data work.checkds;
charchk='modified';
numchk=-1;
output;
run;
%mp_assertcolvals(work.mod8.coal,
checkvals=work.checkds.numchk,
desc=Modified numeric value matches,
test=ALLVALS
)
%mp_assertcolvals(work.mod8.coaltip,
checkvals=work.checkds.charchk,
desc=Modified char value matches,
test=ALLVALS
)
%mp_assertscope(COMPARE,Desc=MacVar Scope Check)