https://github.com/kul-forbes/ForBES
Revision 36ed76a6e9ac9e8c6e15476d48341e8f6b1226aa authored by Lorenzo Stella on 05 May 2016, 12:18:57 UTC, committed by Lorenzo Stella on 05 May 2016, 12:18:57 UTC
1 parent f5db728
Raw File
Tip revision: 36ed76a6e9ac9e8c6e15476d48341e8f6b1226aa authored by Lorenzo Stella on 05 May 2016, 12:18:57 UTC
updated help file
Tip revision: 36ed76a
forbes_test.m
function forbes_test()

% build the paths to add
forbes_path = fileparts(mfilename('fullpath'));
tests_path = fullfile(forbes_path, 'tests');
addpath(tests_path);

fprintf('%40s', 'CheckGamma... ');          test_CheckGamma;            fprintf('OK\n');
fprintf('%40s', 'SolveLasso... ');          test_SolveLasso;            fprintf('OK\n');
fprintf('%40s', 'SolveSparseLogReg... ');   test_SolveSparseLogReg;     fprintf('OK\n');
fprintf('%40s', 'SolveSVM... ');            test_SolveSVM;              fprintf('OK\n');
fprintf('%40s', 'SolveNuclearNormMC... ');	test_SolveNuclearNormMC;    fprintf('OK\n');
fprintf('%40s', 'SolveRankConstrMC... ');	test_SolveRankConstrMC;     fprintf('OK\n');

% rebuild the paths to remove (test scripts may have cleared)
forbes_path = fileparts(mfilename('fullpath'));
tests_path = fullfile(forbes_path, 'tests');
rmpath(tests_path);
back to top