tests: util: PART_OF_ARRAY, IS_ARRAY_ELEMENT, ARRAY_INDEX, ..
Add tests for `PART_OF_ARRAY()`, `IS_ARRAY_ELEMENT()`, `ARRAY_INDEX()`, and `ARRAY_INDEX_FLOOR()`. Signed-off-by: Christopher Friedt <cfriedt@fb.com>
This commit is contained in:
parent
cda7e31de1
commit
2e6e09acac
2 changed files with 99 additions and 0 deletions
|
@ -106,6 +106,26 @@ ZTEST(util_cxx, test_mixing_GET_ARG_and_FOR_EACH) {
|
|||
run_mixing_GET_ARG_and_FOR_EACH();
|
||||
}
|
||||
|
||||
ZTEST(util_cxx, test_IS_ARRAY_ELEMENT)
|
||||
{
|
||||
run_IS_ARRAY_ELEMENT();
|
||||
}
|
||||
|
||||
ZTEST(util_cxx, test_ARRAY_INDEX)
|
||||
{
|
||||
run_ARRAY_INDEX();
|
||||
}
|
||||
|
||||
ZTEST(util_cxx, test_PART_OF_ARRAY)
|
||||
{
|
||||
run_PART_OF_ARRAY();
|
||||
}
|
||||
|
||||
ZTEST(util_cxx, test_ARRAY_INDEX_FLOOR)
|
||||
{
|
||||
run_ARRAY_INDEX_FLOOR();
|
||||
}
|
||||
|
||||
ZTEST_SUITE(util_cxx, NULL, NULL, NULL, NULL, NULL);
|
||||
|
||||
#if __cplusplus
|
||||
|
@ -204,4 +224,24 @@ ZTEST(util_cc, test_mixing_GET_ARG_and_FOR_EACH) {
|
|||
run_mixing_GET_ARG_and_FOR_EACH();
|
||||
}
|
||||
|
||||
ZTEST(util_cc, test_IS_ARRAY_ELEMENT)
|
||||
{
|
||||
run_IS_ARRAY_ELEMENT();
|
||||
}
|
||||
|
||||
ZTEST(util_cc, test_ARRAY_INDEX)
|
||||
{
|
||||
run_ARRAY_INDEX();
|
||||
}
|
||||
|
||||
ZTEST(util_cc, test_PART_OF_ARRAY)
|
||||
{
|
||||
run_PART_OF_ARRAY();
|
||||
}
|
||||
|
||||
ZTEST(util_cc, test_ARRAY_INDEX_FLOOR)
|
||||
{
|
||||
run_ARRAY_INDEX_FLOOR();
|
||||
}
|
||||
|
||||
ZTEST_SUITE(util_cc, NULL, NULL, NULL, NULL, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue