Skip to content
Snippets Groups Projects
Commit 6519c326 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Added unnit test for pop method.

parent 4f36bf1c
Branches
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment