Skip to content

Commit

Permalink
Adds test for running RAT without any layers
Browse files Browse the repository at this point in the history
  • Loading branch information
DrPaulSharp committed Sep 10, 2024
1 parent 6cca217 commit a6518d0
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,19 @@ function loadTFParams(testCase, TFFile)
methods (Test, ParameterCombination='exhaustive')
%% Test High Level RAT Routines

function testRATEmpty(testCase)
% Test that RAT runs for a project without any layers.
emptyProject = projectClass();
emptyProject.addContrast('data', 'Simulation',...
'background', 'Background 1',...
'bulkIn', 'SLD Air',...
'bulkOut', 'SLD D2O',...
'scalefactor', 'Scalefactor 1',...
'resolution', 'Resolution 1');

[~, ~] = RAT(emptyProject,testCase.controlsInput);
end

function testRAT(testCase)
[projectOutput, result] = RAT(testCase.project,testCase.controlsInput);

Expand Down

0 comments on commit a6518d0

Please sign in to comment.