Commit 846aff99 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Removed useless addpath command from unitary tests.

parent a18766d6
......@@ -69,8 +69,6 @@ switch date.freq
end
%@test:1
%$ addpath ../matlab
%$
%$ % Define some dates
%$ date_1 = 1950;
%$ date_2 = '1950Q2';
......@@ -89,4 +87,4 @@ end
%$ t(3) = dyn_assert(date_3,DATE_3);
%$ t(4) = dyn_assert(date_4,DATE_4);
%$ T = all(t);
%@eof:1
%@eof:1
\ No newline at end of file
......@@ -30,7 +30,7 @@ function c = ge(a,b)
%! @end deftypefn
%@eod:
% Copyright (C) 2011 Dynare Team
% Copyright (C) 2011, 2013 Dynare Team
%
% This file is part of Dynare.
%
......@@ -47,8 +47,6 @@ function c = ge(a,b)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
if a>b
c=1;
else
......@@ -60,8 +58,6 @@ else
end
%@test:1
%$ addpath ../matlab
%$
%$ % Define some dates
%$ date_1 = '1950Q3';
%$ date_2 = '1950Q3';
......@@ -84,4 +80,4 @@ end
%$ t(3) = dyn_assert(i3,0);
%$ t(4) = dyn_assert(i4,1);
%$ T = all(t);
%@eof:1
%@eof:1
\ No newline at end of file
......@@ -46,8 +46,6 @@ function c = gt(a,b)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
if nargin~=2
error('dynDate::eq: I need exactly two input arguments!')
end
......@@ -73,8 +71,6 @@ else
end
%@test:1
%$ addpath ../matlab
%$
%$ % Define some dates
%$ date_1 = 1950;
%$ date_2 = '1950Q2';
......@@ -99,4 +95,4 @@ end
%$ t(3) = dyn_assert(i3,0);
%$ t(4) = dyn_assert(i4,0);
%$ T = all(t);
%@eof:1
%@eof:1
\ No newline at end of file
......@@ -30,7 +30,7 @@ function c = le(a,b)
%! @end deftypefn
%@eod:
% Copyright (C) 2011 Dynare Team
% Copyright (C) 2011, 2013 Dynare Team
%
% This file is part of Dynare.
%
......@@ -47,8 +47,6 @@ function c = le(a,b)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
if a<b
c=1;
else
......@@ -60,8 +58,6 @@ else
end
%@test:1
%$ addpath ../matlab
%$
%$ % Define some dates
%$ date_1 = '1950Q3';
%$ date_2 = '1950Q3';
......
......@@ -46,8 +46,6 @@ function c = lt(a,b)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
if nargin~=2
error('dynDate::eq: I need exactly two input arguments!')
end
......@@ -73,8 +71,6 @@ else
end
%@test:1
%$ addpath ../matlab
%$
%$ % Define some dates
%$ date_1 = 1950;
%$ date_2 = '1950Q2';
......
......@@ -46,8 +46,6 @@ function c = max(a,b)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
if nargin~=2
error('dynDate::min: I need exactly two input arguments!')
end
......@@ -67,14 +65,12 @@ else
end
%@test:1
%$ addpath ../matlab
%$
%$ % Define some dates
%$ date_1 = 1950;
%$ date_2 = 2000;
%$ date_3 = '1950Q2';
%$ date_3 = '1950q2';
%$ date_4 = '1950Q3';
%$ date_5 = '1950M1';
%$ date_5 = '1950m1';
%$ date_6 = '1948M6';
%$
%$ % Call the tested routine.
......
......@@ -46,8 +46,6 @@ function c = min(a,b)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
if nargin~=2
error('dynDate::min: I need exactly two input arguments!')
end
......@@ -67,8 +65,6 @@ else
end
%@test:1
%$ addpath ../matlab
%$
%$ % Define some dates
%$ date_1 = 1950;
%$ date_2 = 2000;
......
......@@ -31,7 +31,7 @@ function c = minus(a,b)
%! @end deftypefn
%@eod:
% Copyright (C) 2011 Dynare Team
% Copyright (C) 2011, 2013 Dynare Team
%
% This file is part of Dynare.
%
......@@ -48,8 +48,6 @@ function c = minus(a,b)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
if ~( isa(a,'dynDate') && isa(b,'dynDate') )
error(['dynDate::minus: Input arguments ' inputname(1) ' and ' inputname(2) ' must be dynDate objects!'])
end
......@@ -77,8 +75,6 @@ switch a.freq
end
%@test:1
%$ addpath ../matlab
%$
%$ % Define some dates
%$ date_0_1 = 1950;
%$ date_0_2 = 1950;
......
......@@ -46,8 +46,6 @@ function c = ne(a,b)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
if nargin~=2
error('dynDate::ne: I need exactly two input arguments!')
end
......@@ -63,11 +61,9 @@ end
c = ~isequal(a.time,b.time);
%@test:1
%$ addpath ../matlab
%$
%$ % Define some dates
%$ date_1 = 1950;
%$ date_2 = '1950Q2';
%$ date_2 = '1950q2';
%$ date_3 = '1950M10';
%$ date_4 = '1950W50';
%$ date_5 = '1950W32';
......
......@@ -31,7 +31,7 @@ function c = plus(a,b)
%! @end deftypefn
%@eod:
% Copyright (C) 2011 Dynare Team
% Copyright (C) 2011, 2013 Dynare Team
%
% This file is part of Dynare.
%
......@@ -48,8 +48,6 @@ function c = plus(a,b)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% AUTHORS(S) stephane DOT adjemian AT univ DASH lemans DOT fr
if ~isa(a,'dynDate')
error(['dynDate::plus: Input argument ' inputname(1) ' must be a dynDate object!'])
end
......@@ -58,7 +56,6 @@ if b<0 || ~isint(b)
error(['dynDate::plus: Input argument ' inputname(2) ' must be a positive integer'])
end
if b==0
c = a;
return
......@@ -80,8 +77,6 @@ switch a.freq
end
%@test:1
%$ addpath ../matlab
%$
%$ % Define some dates
%$ date_1 = 1950;
%$ date_2 = '1950Q4';
......
......@@ -29,7 +29,7 @@ function b = uminus(a)
%! @end deftypefn
%@eod:
% Copyright (C) 2011 Dynare Team
% Copyright (C) 2011, 2013 Dynare Team
%
% This file is part of Dynare.
%
......@@ -46,8 +46,6 @@ function b = uminus(a)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
if ~isa(a,'dynDate')
error(['dynDate::uminus: Input argument ' inputname(1) ' must be a dynDate object.'])
end
......@@ -83,14 +81,12 @@ switch b.freq
end
%@test:1
%$ addpath ../matlab
%$
%$ % Define some dates
%$ date_1 = '1950Q1';
%$ date_2 = '1950Q4';
%$ date_3 = '1950M1';
%$ date_4 = '1950M12';
%$ date_5 = '1950W1';
%$ date_5 = '1950w1';
%$ date_6 = '1950W52';
%$ date_7 = 2000;
%$
......
......@@ -29,7 +29,7 @@ function b = uplus(a)
%! @end deftypefn
%@eod:
% Copyright (C) 2011 Dynare Team
% Copyright (C) 2011, 2013 Dynare Team
%
% This file is part of Dynare.
%
......@@ -46,8 +46,6 @@ function b = uplus(a)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
if ~isa(a,'dynDate')
error(['dynDate::uplus: Input argument ' inputname(1) ' must be a dynDate object.'])
end
......@@ -83,13 +81,11 @@ switch b.freq
end
%@test:1
%$ addpath ../matlab
%$
%$ % Define some dates
%$ date_1 = '1950Q3';
%$ date_2 = '1950Q4';
%$ date_3 = '1950M3';
%$ date_4 = '1950M12';
%$ date_4 = '1950m12';
%$ date_5 = '1950W3';
%$ date_6 = '1950W52';
%$ date_7 = 2000;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment