function tests = exampleTest
tests = functiontests(localfunctions);
function setup(testCase)
function teardown(testCase)
function exampleOneTest(testCase)
function testExampleTwo(testCase)
コマンド ラインで、関数 exampleTest を呼び出します。
tests = exampleTest
tests =
1x2 Test array with properties:
Name
ProcedureName
TestClass
BaseFolder
Parameterization
SharedTestFixtures
Tags
Tests Include:
0 Parameterizations, 0 Shared Test Fixture Classes, 0 Tags.
テスト スイートにアクセスして、2 つの関数テストの名前を確認します。
tests.Name
ans =
'exampleTest/exampleOneTest'
ans =
'exampleTest/testExampleTwo'
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.