Test assertions
This module implements a set of assertions for CMake-based tests.
Functions
- assert_not_empty
assert_not_empty(value)
If the string given by value
is empty, emits an error message.
Does nothing otherwise.
- assert_empty
assert_empty(value)
If the string given by value
is not empty, emits an error message.
Does nothing otherwise.
- assert_same
assert_same(value)
If the strings str1
and str2
are not equal, emits an error message.
Does nothing otherwise.
- assert_ends_with
assert_ends_with(value)
If the string str1
does not end with str2
, emits an error message.
Does nothing otherwise.
- assert
assert(value)
If value
evaluates to false, emits an error message.
Does nothing otherwise.
- assert
assert_list_contains(_list _el)
If the list _list
does not contain the element _el
, emits an error
message. Does nothing otherwise.