Fixed unitary test #4 in @dates/dates (constructor).

time-shift
Stéphane Adjemian (Charybdis) 2013-10-15 15:53:16 +02:00
parent 667e895a26
commit d588fce95d
1 changed files with 4 additions and 4 deletions

View File

@ -178,14 +178,14 @@ end
%$ T = all(t); %$ T = all(t);
%@eof:3 %@eof:3
%% @test:4 %@test:4
%$ % Define a dates object %$ % Define a dates object
%$ B = dynDate('1950Q1'):dynDate('1960Q3'); %$ B = dates('1950Q1'):dates('1960Q3');
%$ %$
%$ %$
%$ % Call the tested routine. %$ % Call the tested routine.
%$ d = B(2); %$ d = B(2);
%$ if isa(d,'dynDate') %$ if isa(d,'dates')
%$ t(1) = 1; %$ t(1) = 1;
%$ else %$ else
%$ t(1) = 0; %$ t(1) = 0;
@ -196,4 +196,4 @@ end
%$ t(3) = dyn_assert(d.time,[1950 2]); %$ t(3) = dyn_assert(d.time,[1950 2]);
%$ end %$ end
%$ T = all(t); %$ T = all(t);
%%@eof:4 %@eof:4