Skip to content

Commit

Permalink
add test for aquatrackaPP
Browse files Browse the repository at this point in the history
  • Loading branch information
ocehugo committed Oct 21, 2019
1 parent 1ca93a3 commit 84600a6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/testOnlyCPHL.m
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,26 @@ function test_wqmdat(testCase, wqmdat_reader, wqmdat_v000_param, mode)
assert(check_cphl(data));
end

function test_aquatrackapp(~,sbe19p_reader,sbe19p_v000_param,mode)
data = sbe19p_reader({sbe19p_v000_param},mode);
%fake volt_cphl variable
for k=1:length(data.variables)
if contains(data.variables{k}.name,'CPHL')
newvar = data.variables{k};
newvar.name = 'volt_CHL';
data.variables{end+1} = newvar;
break
end
end
output = aquatrackaPP({data},'qc',0);
data = output{1};
comment = data.variables{end}.comment;
assert(check_cphl(data));
assert(contains(comment,'analogic input'));
assert(contains(comment,'scaleFactor='));
assert(contains(comment,'offset='));
end

end

end
Expand Down

0 comments on commit 84600a6

Please sign in to comment.