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:
@@ -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)
|
||||
Reference in New Issue
Block a user