TestError

Unit test for confirming that a function throws an error.

Back to Simple Unit Testing Toolbox Documentation.

Contents

Constructor

unit_test = TestError(f,args,name)
unit_test = TestError(f,{},name)

Variable Description Format
f function handle assigned to function you want to test 1×1
function_handle
args input arguments to f (if f has no input arguments, then input args as {}) cell array
name test name char array

Superclass

UnitTest

See also

TestNoError | UnitTest