type/verify
check for the Boolean of verification results
Calling Sequence
Parameters
Description
Examples
type(a, verify(bool))
a
-
any expression
bool
either 'true', 'false', or 'FAIL'
Forcing a result from verify to return a Boolean value is too restrictive, so a more general class of objects may be returned, with the Boolean value of these being checked by the above types.
A result from a call to verify is considered to be true if the result is true. A result from a call to verify is considered to be either false or FAIL if either of those values is returned, or if a list containing either false or FAIL as a first operand is returned, respectively.
The special verification boolean will convert all return values which are lists to return the first operand of the list. This can be used if a boolean value is expected by some procedure.
The special verification truefalse will convert all return values which are lists to return the false. This can be used if a truefalse value is expected by some procedure.
type⁡true,verify⁡true
true
type⁡false,verify⁡false
type⁡false,0.100⁢108,ulps,verify⁡false
verify⁡10,10.000001,float⁡2
false,100.,ulps
verify⁡10,10.000001,boolean⁡float⁡2
false
verify⁡x,π,greater_than
FAIL
verify⁡x,π,truefalse⁡greater_than
select⁡verify,1,2,3,x,π,less_than
1,2,3
select⁡verify,1,2,3,x,π,truefalse⁡less_than
See Also
type
type/verification
verify
verify/structured
Download Help Document