diff options
Diffstat (limited to 'zephyr/test')
-rw-r--r-- | zephyr/test/drivers/src/charge_manager.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zephyr/test/drivers/src/charge_manager.c b/zephyr/test/drivers/src/charge_manager.c index f4d8f4d74a..0accf7a448 100644 --- a/zephyr/test/drivers/src/charge_manager.c +++ b/zephyr/test/drivers/src/charge_manager.c @@ -48,3 +48,11 @@ ZTEST_USER(charge_manager, test_default_charge_port_is_connected) zassert_true(board_charge_port_is_connected(1), NULL); zassert_true(board_charge_port_is_connected(500), NULL); } + +ZTEST_USER(charge_manager, test_default_charge_port_is_sink) +{ + zassert_true(board_charge_port_is_sink(-1), NULL); + zassert_true(board_charge_port_is_sink(0), NULL); + zassert_true(board_charge_port_is_sink(1), NULL); + zassert_true(board_charge_port_is_sink(500), NULL); +} |