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

Reset seed in each unit test.

⇒ Generated pseudo-random numbers will not change if we add new unit tests.
parent 9a478f3f
No related branches found
No related tags found
No related merge requests found
Pipeline #10928 passed
...@@ -210,7 +210,7 @@ end ...@@ -210,7 +210,7 @@ end
if ~isoctave && ~user_has_matlab_license('statistics_toolbox') if ~isoctave && ~user_has_matlab_license('statistics_toolbox')
method = struct('small', 'Berman', 'large', 'Knuth'); method = struct('small', 'Berman', 'large', 'Knuth');
n = 1000000; n = 1000000;
m = 1; m = 3;
a = 0.1; a = 0.1;
b = 1.0; b = 1.0;
try try
...@@ -287,7 +287,7 @@ end ...@@ -287,7 +287,7 @@ end
%@test:5 %@test:5
if ~isoctave && ~user_has_matlab_license('statistics_toolbox') if ~isoctave && ~user_has_matlab_license('statistics_toolbox')
method = struct('small', 'Best', 'large', 'Knuth'); method = struct('small', 'Best', 'large', 'Knuth');
n = 10000000; n = 1000000;
m = 1; m = 1;
a = 0.1; a = 0.1;
b = 1.0; b = 1.0;
...@@ -326,8 +326,8 @@ end ...@@ -326,8 +326,8 @@ end
%@test:6 %@test:6
if ~isoctave && ~user_has_matlab_license('statistics_toolbox') if ~isoctave && ~user_has_matlab_license('statistics_toolbox')
method = struct('small', 'Weibull-rejection', 'large', 'Knuth'); method = struct('small', 'Weibull-rejection', 'large', 'Knuth');
n = 10000000; n = 1000000;
m = 1; m = 3;
a = 1.5; a = 1.5;
b = 1.0; b = 1.0;
try try
...@@ -365,7 +365,7 @@ end ...@@ -365,7 +365,7 @@ end
%@test:7 %@test:7
if ~isoctave && ~user_has_matlab_license('statistics_toolbox') if ~isoctave && ~user_has_matlab_license('statistics_toolbox')
method = struct('small', 'Weibull-rejection', 'large', 'Cheng'); method = struct('small', 'Weibull-rejection', 'large', 'Cheng');
n = 10000000; n = 1000000;
m = 1; m = 1;
a = 1.5; a = 1.5;
b = 1.0; b = 1.0;
...@@ -404,8 +404,8 @@ end ...@@ -404,8 +404,8 @@ end
%@test:8 %@test:8
if ~isoctave && ~user_has_matlab_license('statistics_toolbox') if ~isoctave && ~user_has_matlab_license('statistics_toolbox')
method = struct('small', 'Weibull-rejection', 'large', 'Best'); method = struct('small', 'Weibull-rejection', 'large', 'Best');
n = 10000000; n = 1000000;
m = 1; m = 20;
a = 1.5; a = 1.5;
b = 1.0; b = 1.0;
try try
......
Subproject commit 3362b3f43053a2bb5d3d3a1dbfb1a9e0c42a8fb8 Subproject commit c5ce7645386c6d2e42a018957e245caa3dc05fde
...@@ -36,8 +36,6 @@ if isoctave ...@@ -36,8 +36,6 @@ if isoctave
mlist = mlist(find(~strcmp([matlab_dir filesep 'load_m_file_data_legacy.m'], mlist))); mlist = mlist(find(~strcmp([matlab_dir filesep 'load_m_file_data_legacy.m'], mlist)));
end end
rng(1);
failedtests = {}; failedtests = {};
for i = 1:length(mlist) for i = 1:length(mlist)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment