Added missing try-catch blocks.

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