Commit 8fcf9347 authored by Stéphane Adjemian's avatar Stéphane Adjemian

Cosmetic changes in unit tests.

parent f2641630
......@@ -53,7 +53,7 @@ switch S(1).type
o.(S(1).subs) = setoption(o.(S(1).subs), S(2).subs{i}, S(2).subs{i+1});
checkoptioncompatibility(o);
else
disp(sprintf('Option %s is not available in block %s!', S(2).subs{i}, S(1).subs))
fprintf('Option %s is not available in block %s!', S(2).subs{i}, S(1).subs);
end
end
end
......@@ -96,44 +96,39 @@ switch S(1).type
end
%@test:1
%$ t = zeros(1,5);
%$ t = zeros(4,1);
%$ o = x13();
%$
%$ try
%$ o(arima);
%$ o.unicorn;
%$ t(1) = false;
%$ catch
%$ t(1) = true;
%$ end
%$
%$ try
%$ o.unicorn;
%$ t(2) = false;
%$ o.x11('onearg','onevalue','twoargs');
%$ t(2) = false;
%$ catch
%$ t(2) = true;
%$ end
%$
%$ try
%$ o.x11('onearg','onevalue','twoargs');
%$ addpath(sprintf('%s/tests/fake', dseries_src_root))
%$ o.x11('unicorn','yes please');
%$ o.x11.unicorn;
%$ rmpath(sprintf('%s/tests/fake', dseries_src_root))
%$ t(3) = false;
%$ catch
%$ t(3) = true;
%$ end
%$
%$ try
%$ o.x11('unicorn','yes please');
%$ o.x11.unicorn;
%$ o.print.unicorn;
%$ t(4) = false;
%$ catch
%$ t(4) = true;
%$ end
%$
%$ try
%$ o.print.unicorn;
%$ t(5) = false;
%$ catch
%$ t(5) = true;
%$ end
%$
%$ T = all(t);
%@eof:1
\ 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