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

Reset seed in each unit test.

parent 3362b3f4
No related branches found
No related tags found
No related merge requests found
...@@ -85,6 +85,7 @@ for i=1:nn ...@@ -85,6 +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(fid, '\nrng(1);\n\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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment