check
check
EXPRESSION expect
EXPRESSION
This form compares the resulting values of the two expressions through a deep comparison. The resulting value will be a boolean. Neither expression can have type float
or double
. When test reporting is enabled, results of checks appear in the testing window. check
EXPRESSION expect
EXPRESSION within
EXPRESSION
This form compares the resulting values of the first two expressions through a deep comparison. The third value must be numeric. If the resulting values of the compared expressions are numeric, their values must be within the third value of each other. For example, in 'check a expect b within c', the absolute value of a-b must be less than or equal to c. If the compared expressions evaluate to objects, any numeric fields will be compared with this formula. The resulting value will be a boolean. When test reporting is enabled, results of checks appear in the testing window.
ProfessorJ Intermediate + access Language