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

Cosmetic change.

parent 7babccd6
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ function p = copy(o) % --*-- Unitary tests --*--
% OUTPUTS
% - p [dates]
% Copyright (C) 2014-2017 Dynare Team
% Copyright © 2014-2020 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......@@ -27,23 +27,25 @@ p = dates();
p.freq = o.freq;
p.time = o.time;
return
%@test:1
%$ % Define a dates object
%$ o = dates('1945Q3','1944Q4');
%$ q = dates('1945Q3','1944Q4');
%$
%$ % Call the tested routine.
%$ try
%$ p = copy(o);
%$ t(1) = true;
%$ catch
%$ t(1) = false;
%$ end
%$
%$ if t(1)
%$ o.sort_();
%$ t(2) = dassert(p, q);
%$ end
%$
%$ T = all(t);
% Define a dates object
o = dates('1945Q3','1944Q4');
q = dates('1945Q3','1944Q4');
% Call the tested routine.
try
p = copy(o);
t(1) = true;
catch
t(1) = false;
end
if t(1)
o.sort_();
t(2) = dassert(p, q);
end
T = all(t);
%@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