Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 5d0954a3 authored by Adrien Leman's avatar Adrien Leman Committed by hhakim
Browse files

modif for CTest

parent 0e9794e4
No related branches found
No related tags found
No related merge requests found
%% test the mexhierarchical_fact function in the hier fact configuration
%
% addpath(['..' filesep 'tools']);
% set_path;
%
% load config_compared_hierarchical_fact;
% [mexlambda,mexfact,fc]=launch_hierarchical_fact(params);
function [testPass]=hier_fact(expectedLambda, expectedLambdaPrecision)
addpath(['..' filesep 'tools']);
set_path;
load config_compared_hierarchical_fact;
[mexlambda,mexfact,fc]=launch_hierarchical_fact(params);
\ No newline at end of file
[mexlambda,mexfact,fc]=launch_hierarchical_fact(params);
if (mexlambda >= (expectedLambda - expectedLambdaPrecision) && (mexlambda <= (expectedLambda + expectedLambdaPrecision)) )
testPass=0; % le résultats est OK
disp('');
disp('Test is successful');
else
testPass=1; % le resutat n'est pas bon.
disp('');
disp('Test is NOT successful');
exit (FAILURE);
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment