1 /*
2  * Copyright (c) 2022 Meta
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <stdlib.h>
8 
9 #include <zephyr/ztest.h>
10 #include <zephyr/sys/hash_map.h>
11 
12 #include "_main.h"
13 
ZTEST(hash_map,test_empty)14 ZTEST(hash_map, test_empty)
15 {
16 	/* test size 0 */
17 	zassert_true(sys_hashmap_is_empty(&map));
18 
19 	/* test size 1 */
20 	zassume_equal(1, sys_hashmap_insert(&map, 1, 1, NULL));
21 	zassert_false(sys_hashmap_is_empty(&map));
22 }
23