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

Fixed unit test.

parent db95402a
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ function s = nanstd(o, geometric) % --*-- Unitary tests --*-- ...@@ -8,7 +8,7 @@ function s = nanstd(o, geometric) % --*-- Unitary tests --*--
% - geometric logical [default is false], if true returns the geometric mean. % - geometric logical [default is false], if true returns the geometric mean.
% %
% OUTPUTS % OUTPUTS
% - m 1*vobs(o) vector of doubles. % - s 1*vobs(o) vector of doubles.
% Copyright © 2020 Dynare Team % Copyright © 2020 Dynare Team
% %
...@@ -49,7 +49,7 @@ end ...@@ -49,7 +49,7 @@ end
return return
%@test:1 %@test:1
% Define a dataset. % Define a dataset.
A = randn(10000000,2); A = randn(1000000,2);
A(3,1) = NaN; A(3,1) = NaN;
A(5,2) = NaN; A(5,2) = NaN;
...@@ -63,8 +63,8 @@ catch ...@@ -63,8 +63,8 @@ catch
end end
if t(1) if t(1)
t(2) = dassert(isequal(size(m),[1, 2]), true); t(2) = dassert(isequal(size(s),[1, 2]), true);
t(3) = all(abs(s-ones(1, 2))<1e-2); t(3) = all(abs(s-ones(1, 2))<1e-3);
end end
T = all(t); T = all(t);
%@eof:1 %@eof:1
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment