Added unnit test for pop method.

parent 4f36bf1c
......@@ -119,4 +119,20 @@ end
%$ d.pop(1);
%$ t(3) = dassert(d,dates(B2,B4));
%$ T = all(t);
%@eof:2
\ No newline at end of file
%@eof:2
%@test:3
%$ % Define some dates
%$ B1 = '1950Q1';
%$ B2 = '1950Q2';
%$ B3 = '1950Q3';
%$ % Call the tested routine
%$ d = dates(B1,B2,B3);
%$ d.pop();
%$ t(1) = dassert(d,dates(B1,B2));
%$ d.pop(B1);
%$ t(2) = dassert(d,dates(B2));
%$ d.pop(1);
%$ t(3) = isempty(d);
%$ T = all(t);
%@eof:3
\ No newline at end of file
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