mikakoistinen
7 years agoContributor
Evaluate and unit reference
Hi,
I have general purpose CSV FIle compare function in one unit (lets call it general)
I'd like to call it from actual test unit. (lets call it actualtest)
Problem is that I need to ignore / modify some fields before compare.
I tought that i could pass procedure name as parameter and call it from that compere function, but I get Unknown identifier actualtest
for example
in general.sd
procedure compare_csvfile (file1, file2, comparemethodname); begin ... parameters := '( something )'; evaluate(comparemethodname+parameters); end;
in actualtest.sd
uses general;
procedure normalizedata(a,b,c); begin
// do something end; procedure doactualtest; begin
... generate test data .. compare_csvfile( file1, file2, 'actualtest.normalizedata'); end;
should this be possible?