📄 unit_results.m
字号:
function unit_results% Inspired by Paul Kienzle's and Stefan van der Walt's octave unit tests% $Id: unit_results.m 31 2004-07-28 10:46:46Z mairas $global unitres;t=toc;disp(['Testcases total: ' num2str(unitres.total)]);disp(['Testcases passed: ' num2str(unitres.pass)]);disp(['Testcases failed expectedly: ' num2str(unitres.efail)]);disp(['Testcases failed: ' num2str(unitres.fail)]);disp(['Testcases passed unexpectedly: ' num2str(unitres.upass)]);disp(['Time elapsed: ' num2str(t) ' s']);if unitres.total == unitres.pass + unitres.efail disp('Unit testing completed successfully!');else disp('One or more tests failed!');end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -