/* * Copyright (c) 2022 Meta * * SPDX-License-Identifier: Apache-2.0 */ #include #include #include #include "_main.h" ZTEST(hash_map, test_empty) { /* test size 0 */ zassert_true(sys_hashmap_is_empty(&map)); /* test size 1 */ zassume_equal(1, sys_hashmap_insert(&map, 1, 1, NULL)); zassert_false(sys_hashmap_is_empty(&map)); }