<< assert_isapprox | Assertion functions | assert_isfalse >> |
assert_isequal(computed, expected) |
res = assert_isequal(computed, expected) |
[res, msg] = assert_isequal(computed, expected) |
a value
a value
a logical value
a string value, the error message. If res == true, then errormsg == ''. If res == false, then msg contains the error message.
A = eye(3, 3);
assert_isequal(A, A)
A = eye(3, 3);
B = single(A);
assert_isequal(A, B)
A = NaN;
B = A;
assert_isequal(A, B)
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET