Check that condition is false.
flag = assert_checkfalse ( condition )
flag = assert_checkfalse ( condition )
[flag,errmsg] = assert_checkfalse ( condition )
condition: | a matrix of booleans |
---|
:
Performs silently if all entries in condition are false.
Generates an error if any entry in condition is true. Generates an error if condition is not a boolean.
If any entry in condition is true,
// Tests which pass
assert_checkfalse ( %f );
flag = assert_checkfalse ( %f )
[flag,errmsg] = assert_checkfalse ( %f )
[flag,errmsg] = assert_checkfalse ( [%f %f] );
// Tests which fail
assert_checkfalse ( [%t %f] );
flag = assert_checkfalse ( [%t %f] )
// No error generated
[flag,errmsg] = assert_checkfalse ( [%t %f] )
// Wrong calls
assert_checkfalse ( "a" )
Version Description 5.4.0 Function introduced