Added unit test.

parent ee5014d2
......@@ -327,3 +327,22 @@ end
%$ T = all(t);
%@eof:6
%@test:7
%$ % Define a dates object
%$ B = dates('1950Q1','1950Q2','1950Q3','1950Q4','1951Q1');
%$
%$ % Try to extract a sub-dates object.
%$ try
%$ d = B([]);
%$ t(1) = true;
%$ catch
%$ t(1) = false;
%$ end
%$
%$ if t(1)
%$ t(2) = dassert(isa(d,'dates'), true);
%$ t(3) = dassert(isempty(d), true);
%$ end
%$ T = all(t);
%@eof:7
Markdown is supported
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