MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
Type of Test Verification Assumption Assertion Fatal Assertion

Value meets
given constraint.


verifyThat assumeThat assertThat fatalAssertThat

Value is greater
than specified
value.


verifyGreater
Than

assumeGreaterT
han

assertGreaterT
han

fatalAssertGreat
erThan

Value is greater
than or equal to
specified value.


verifyGreater
ThanOrEqual

assumeGreaterT
hanOrEqual

assertGreaterT
hanOrEqual

fatalAssertGreat
erThanOrEqual

Value is less
than specified
value.


verifyLessTha
n

assumeLessThan assertLessThan fatalAssertLessT
han

Value is less
than or equal to
specified value.


verifyLessTha
nOrEqual

assumeLessThan
OrEqual

assertLessThan
OrEqual

fatalAssertLessT
hanOrEqual

Value is exact
specified class.


verifyClass assumeClass assertClass fatalAssertClass

Value is object of
specified type.


verifyInstanc
eOf

assumeInstance
Of

assertInstance
Of

fatalAssertInsta
nceOf

Value is empty. verifyEmpty assumeEmpty assertEmpty fatalAssertEmpty


Value is not
empty.


verifyNotEmpt
y

assumeNotEmpty assertNotEmpty fatalAssertNotEm
pty

Value has
specified size.


verifySize assumeSize assertSize fatalAssertSize

Value has
specified length.


verifyLength assumeLength assertLength fatalAssertLengt
h

Value has
specified
element count.


verifyNumElem
ents

assumeNumEleme
nts

assertNumEleme
nts

fatalAssertNumEl
ements

String contains
specified string.


verifySubstri
ng

assumeSubstrin
g

assertSubstrin
g

fatalAssertSubst
ring

Text matches
specified regular
expression.


verifyMatches assumeMatches assertMatches fatalAssertMatch
es

Types of Qualifications
Free download pdf