zephyr/tests/unit
Kornel Dulęba 8fc913374f include: util: Add DIV_ROUND_CLOSEST helper
It's similar to DIV_ROUND_UP, but rounds to the nearest integer.
Some basic unit tests were introduced to check that it works as
intended.

Signed-off-by: Kornel Dulęba <mindal@semihalf.com>
2023-07-21 10:49:41 +00:00
..
base64 test: update how unit tests set sources 2022-10-31 17:01:59 +01:00
cbprintf samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
crc samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
intmath samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
list samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
math_extras test: update how unit tests set sources 2022-10-31 17:01:59 +01:00
net_timeout test: update how unit tests set sources 2022-10-31 17:01:59 +01:00
pot tests: unit: test for Power-of-Two utilities 2023-02-22 19:14:05 +01:00
rbtree test: update how unit tests set sources 2022-10-31 17:01:59 +01:00
time_units tests: time_units: check for overflow in z_tmcvt intermediate 2022-12-19 09:36:38 +00:00
timeutil test: update how unit tests set sources 2022-10-31 17:01:59 +01:00
util include: util: Add DIV_ROUND_CLOSEST helper 2023-07-21 10:49:41 +00:00
winstream test: update how unit tests set sources 2022-10-31 17:01:59 +01:00