Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
916b5479
Verified
Commit
916b5479
authored
9 months ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
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
9 months ago
Stage: build
Stage: test
Stage: pkg
Stage: sign
Stage: deploy
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
matlab/missing/stats/gamrnd.m
+7
-7
7 additions, 7 deletions
matlab/missing/stats/gamrnd.m
matlab/utilities/tests
+1
-1
1 addition, 1 deletion
matlab/utilities/tests
tests/run_all_unit_tests.m
+0
-2
0 additions, 2 deletions
tests/run_all_unit_tests.m
with
8 additions
and
10 deletions
matlab/missing/stats/gamrnd.m
+
7
−
7
View file @
916b5479
...
@@ -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
=
1000000
0
;
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
=
1000000
0
;
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
=
1000000
0
;
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
=
1000000
0
;
n
=
1000000
;
m
=
1
;
m
=
20
;
a
=
1.5
;
a
=
1.5
;
b
=
1.0
;
b
=
1.0
;
try
try
...
...
This diff is collapsed.
Click to expand it.
tests
@
c5ce7645
Compare
3362b3f4
...
c5ce7645
Subproject commit
3362b3f43053a2bb5d3d3a1dbfb1a9e0c42a8fb8
Subproject commit
c5ce7645386c6d2e42a018957e245caa3dc05fde
This diff is collapsed.
Click to expand it.
tests/run_all_unit_tests.m
+
0
−
2
View file @
916b5479
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment