assertSignalsMatch
Class: sltest.TestCase
Namespace: sltest
Syntax
Description
assertSignalsMatch(
filters test content by asserting that the actual and expected signal data values are
equivalent. When an assertion fails, the test point or test file stops running, and that
test is marked as failed. This qualification is useful when a failure at the assertion point
renders the rest of the current test method invalid, but does not prevent
proper execution of other test methods. Often, you use
assertions to check that preconditions of the current test are not violated or that fixtures
are set up correctly. For more information, see testCase
,actual
,expected
)matlab.unittest.qualifications.Assertable
.
assertSignalsMatch(___,
returns diagnostic information when the actual and expected data values are not
equivalent.diagnostic
)
assertSignalsMatch(___,
filters test content with additional options specified by one or more
Name,Value
)Name,Value
pair arguments.
Input Arguments
Examples
Version History
Introduced in R2020b
See Also
sltest.TestCase
| Simulink.sdi.constraints.MatchesSignal
| matlab.unittest.qualifications.Assertable
| fatalAssertSignalsMatch
| verifySignalsMatch
| assumeSignalsMatch
| matlab.unittest.constraints.AbsoluteTolerance
| matlab.unittest.constraints.RelativeTolerance
| matlab.automation.diagnostics.Diagnostic