Skip to content
Snippets Groups Projects
Verified Commit 3362b3f4 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Remove unnecessary square brackets.

parent a6b97581
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ if sendmail ...@@ -93,7 +93,7 @@ if sendmail
fid = fopen('~/.matlab-send-mail-info','r'); fid = fopen('~/.matlab-send-mail-info','r');
else else
disp(['build_report_summary:: I Cannot send the report to ' mailto ' because the sender and the smtp server are not defined!']) disp(['build_report_summary:: I Cannot send the report to ' mailto ' because the sender and the smtp server are not defined!'])
disp([' You probably need to add a ''.matlab-send-mail-info'' in your root directory...']) disp(' You probably need to add a ''.matlab-send-mail-info'' in your root directory...')
return return
end end
setpref('Internet','SMTP_Server',fgetl(fid)); setpref('Internet','SMTP_Server',fgetl(fid));
......
...@@ -85,7 +85,7 @@ for i=1:nn ...@@ -85,7 +85,7 @@ for i=1:nn
% Write the temporary test routine. % Write the temporary test routine.
tid = fopen([FNAME '_test_' int2str(i) '.m'],'w'); tid = fopen([FNAME '_test_' int2str(i) '.m'],'w');
fprintf(tid,['function [T,t,LOG] = ' FNAME '_test_' int2str(i) '()\n']); fprintf(tid,['function [T,t,LOG] = ' FNAME '_test_' int2str(i) '()\n']);
fprintf(tid,['try\n']); fprintf(tid,'try\n');
if (length(file{b1(i)+1})>2 && isequal(file{b1(i)+1}(1:3), '%$ ')) || (length(file{b1(i)+1})>1 && isequal(file{b1(i)+1}(1:2), '%$')) if (length(file{b1(i)+1})>2 && isequal(file{b1(i)+1}(1:3), '%$ ')) || (length(file{b1(i)+1})>1 && isequal(file{b1(i)+1}(1:2), '%$'))
remove_first_columns = true; remove_first_columns = true;
else else
...@@ -100,25 +100,25 @@ for i=1:nn ...@@ -100,25 +100,25 @@ for i=1:nn
str = regexprep(str, '%', '%%'); str = regexprep(str, '%', '%%');
fprintf(tid,str); fprintf(tid,str);
end end
fprintf(tid,['LOG = NaN;\n']); fprintf(tid,'LOG = NaN;\n');
if isoctave if isoctave
fprintf(tid,'catch\n'); fprintf(tid,'catch\n');
fprintf(tid,'exception = lasterror;\n'); fprintf(tid,'exception = lasterror;\n');
fprintf(tid, 'LOG = ''%s'';\n','The Log output is not available with Octave!'); fprintf(tid, 'LOG = ''%s'';\n','The Log output is not available with Octave!');
else else
fprintf(tid,'catch exception\n'); fprintf(tid,'catch exception\n');
fprintf(tid,['LOG = getReport(exception,''extended'');\n']); fprintf(tid,'LOG = getReport(exception,''extended'');\n');
end end
fprintf(tid,['T = NaN;\n']); fprintf(tid,'T = NaN;\n');
fprintf(tid,['t = NaN;\n']); fprintf(tid,'t = NaN;\n');
fprintf(tid,['end\n']); fprintf(tid,'end\n');
fclose(tid); fclose(tid);
% Call the temporary test routine. % Call the temporary test routine.
tic; tic;
[TestFlag,TestDetails,LOG] = feval([FNAME '_test_' int2str(i)]); [TestFlag,TestDetails,LOG] = feval([FNAME '_test_' int2str(i)]);
time = toc; time = toc;
if isnan(TestFlag) if isnan(TestFlag)
fprintf(['\n']) fprintf('\n')
fprintf(['Call to ' FNAME ' test routine n°' int2str(i) ' failed (' datestr(now) ')!\n']) fprintf(['Call to ' FNAME ' test routine n°' int2str(i) ' failed (' datestr(now) ')!\n'])
fprintf(['\n']) fprintf(['\n'])
if ~isoctave if ~isoctave
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment