Fixed bug causing unitary tests for dynSeries::plus and dynSeries::minus to fail.

See http://www.dynare.org/stepan/dynare/tests/report-f4c01a43bc2882e7fd18f3cd82344fff9644088c.log
time-shift
Stéphane Adjemian (Charybdis) 2013-09-06 10:33:50 +02:00
parent f4c01a43bc
commit 23a6ad22dd
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ switch nargin
error(['dynDate:: Can''t instantiate the class! The first argument ' inputname(a) ' must be a 1*2 vector of integers.'])
end
else
if isequal(date.freq,1) && isequal(a(2),1)
if isequal(date.freq,1) && ~isequal(a(2),1)
error(['dynDate:: Can''t instantiate the class! The second element of the first input argument ' inputname(a) ' must be equal to one (because freq==1)!'])
end
end