matlab.unittest.constraints - Summary of classes in MATLAB constraints interface - MATLAB (original) (raw)

Main Content

Summary of classes in MATLAB constraints interface

Description

You can use constraints to specify business rules for qualifying calculated (actual) values in tests. To test whether or not an actual value satisfies a constraint, use the constraint in conjunction with thematlab.unittest.qualifications qualification methodsassertThat, assumeThat,fatalAssertThat, or verifyThat. While constraints are primarily intended for qualifications, you also can use them with the classes in thematlab.unittest.selectors namespace to selectTest elements and with the mocking framework to specify behavior and qualify interactions.

The matlab.unittest.constraints namespace consists of the following classes.

Classes

Constraint Implementations

General Purpose

Errors and Warnings

Inequalities

Array Size

Type

Strings

Special Values

Numeric Attributes

Set

Files and Folders

Actual Value Proxies

Tolerances

Comparators

Version History

Introduced in R2013a