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

Added missing try-catch blocks.

parent 62997c93
Branches
No related tags found
No related merge requests found
...@@ -53,11 +53,19 @@ o.remove_(p); ...@@ -53,11 +53,19 @@ o.remove_(p);
%$ g = copy(d); %$ g = copy(d);
%$ %$
%$ % Call the tested routine. %$ % Call the tested routine.
%$ c = d.remove(e); %$ try
%$ c = d.remove(e);
%$ t(1) = true;
%$ catch
%$ t(1) = false;
%$ end
%$ %$
%$ % Check the results. %$ % Check the results.
%$ t(1) = dassert(c,f); %$ if t(1)
%$ t(2) = dassert(d,g); %$ t(2) = dassert(c,f);
%$ t(3) = dassert(d,g);
%$ end
%$
%$ T = all(t); %$ T = all(t);
%@eof:1 %@eof:1
...@@ -68,9 +76,17 @@ o.remove_(p); ...@@ -68,9 +76,17 @@ o.remove_(p);
%$ f = dates('1950Q2'); %$ f = dates('1950Q2');
%$ %$
%$ % Call the tested routine. %$ % Call the tested routine.
%$ c = d.remove(e); %$ try
%$ c = d.remove(e);
%$ t(1) = true;
%$ catch
%$ t(1) = false;
%$ end
%$ %$
%$ % Check the results. %$ % Check the results.
%$ t(1) = dassert(c,f); %$ if t(1)
%$ t(2) = dassert(c,f);
%$ end
%$
%$ T = all(t); %$ T = all(t);
%@eof:2 %@eof:2
...@@ -57,10 +57,18 @@ o.time = time; ...@@ -57,10 +57,18 @@ o.time = time;
%$ f = dates('1950Q1'):dates('1950Q4'); %$ f = dates('1950Q1'):dates('1950Q4');
%$ %$
%$ % Call the tested routine. %$ % Call the tested routine.
%$ d.remove_(e); %$ try
%$ d.remove_(e);
%$ t(1) = true;
%$ catch
%$ t(1) = false;
%$ end
%$ %$
%$ % Check the results. %$ % Check the results.
%$ t(1) = dassert(d,f); %$ if t(1)
%$ t(2) = dassert(d,f);
%$ end
%$
%$ T = all(t); %$ T = all(t);
%@eof:1 %@eof:1
...@@ -71,9 +79,17 @@ o.time = time; ...@@ -71,9 +79,17 @@ o.time = time;
%$ f = dates('1950Q2'); %$ f = dates('1950Q2');
%$ %$
%$ % Call the tested routine. %$ % Call the tested routine.
%$ d.remove_(e); %$ try
%$ d.remove_(e);
%$ t(1) = true;
%$ catch
%$ t(1) = false;
%$ end
%$ %$
%$ % Check the results. %$ % Check the results.
%$ t(1) = dassert(d,f); %$ if t(1)
%$ t(2) = dassert(d,f);
%$ end
%$
%$ T = all(t); %$ T = all(t);
%@eof:2 %@eof:2
\ 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