diff --git a/tests/testSnapshot.m b/tests/testSnapshot.m index 37442e7..12fb3c5 100644 --- a/tests/testSnapshot.m +++ b/tests/testSnapshot.m @@ -147,5 +147,19 @@ function identifyflats(testCase, dataset) testCase.verifyEqual(logical(closed_result.Z),CLOSED.Z); end end + + function acv(testCase,dataset) + A = testCase.dem.acv(); + + result_file = fullfile(dataset,"acv.tif"); + + if ~isfile(result_file) + % Write the result to the directory + A.GRIDobj2geotiff(result_file); + else + demf_result = GRIDobj(result_file); + testCase.verifyEqual(demf_result.Z,A.Z); + end + end end end