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
Branches reset-seed-in-unit-tests
No related tags found
No related merge requests found
......@@ -85,6 +85,7 @@ for i=1:nn
% Write the temporary test routine.
tid = fopen([FNAME '_test_' int2str(i) '.m'],'w');
fprintf(tid,['function [T,t,LOG] = ' FNAME '_test_' int2str(i) '()\n']);
fprintf(fid, '\nrng(1);\n\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), '%$'))
remove_first_columns = true;
......
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