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
- TestError is a subclass of the UnitTest class (i.e. UnitTest is the superclass of TestError). See the UnitTest class's documentation for documentation of methods that the TestError class also possesses.