isteststring.m
来自「Matlab 单元测试工具箱 Matlab Unit Test Toolbox」· M 代码 · 共 13 行
M
13 行
function tf = isTestString(str)
%isTestString True if string looks like the name of a test
% tf = isTestString(str) returns true if the string str looks like the name of
% a test. If str is a cell array of strings, then isTestString tests each
% string in the cell array, returning the results in a logical array with the
% same size as str.
% Steven L. Eddins
% Copyright 2008-2009 The MathWorks, Inc.
test_exp = '^[tT]est';
tf = mtest.utils.containsRegexp(str, test_exp);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?