Added unitary test.

time-shift
Stéphane Adjemian (Charybdis) 2013-09-04 18:07:55 +02:00
parent 56be6eb463
commit 61c4244410
1 changed files with 17 additions and 0 deletions

View File

@ -292,3 +292,20 @@ end
%$ t(6) = dyn_assert(all(isnan(ww.time)),1);
%$ T = all(t);
%@eof:4
%@test:5
%$ % Try to instatiate dynDate objects.
%$ try
%$ a = dynDate([1950 1],'Q');
%$ t(1) = 1;
%$ catch
%$ t(1) = 0;
%$ end
%$ try
%$ a = dynDate([1950 5],'Q');
%$ t(2) = 0;
%$ catch
%$ t(2) = 1;
%$ end
%$ T = all(t);
%@eof:5