📄 t_begin.m
字号:
function t_begin(num_of_tests, quiet)%T_BEGIN Begin running tests.% t_begin(num_of_tests, quiet) initializes the global test counters,% setting everything up to execute num_of_tests tests using t_ok()% and t_is(). If quiet is true, it will not print anything for the% individual tests, only a summary when t_end() is called.% MATPOWER% $Id: t_begin.m,v 1.3 2004/08/25 13:24:23 ray Exp $% by Ray Zimmerman, PSERC Cornell% Copyright (c) 2004 by Power System Engineering Research Center (PSERC)% See http://www.pserc.cornell.edu/matpower/ for more info.global t_quiet;global t_num_of_tests;global t_counter;global t_ok_cnt;global t_not_ok_cnt;global t_skip_cnt;global t_clock;if nargin < 2 quiet = 0;endt_quiet = quiet;t_num_of_tests = num_of_tests;t_counter = 1;t_ok_cnt = 0;t_not_ok_cnt = 0;t_skip_cnt = 0;t_clock = clock;if ~t_quiet fprintf('1..%d\n', num_of_tests);endreturn;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -