-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_suite.h
38 lines (31 loc) · 1.15 KB
/
test_suite.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef TESTSUITE_H_
#define TESTSUITE_H_
#include "hashmap.h"
#include <stdlib.h>
#include <assert.h>
/**
* This function checks the hashmap_insert function of the hashmap library.
* If hashmap_insert fails at some points, the functions exits with exit code 1.
*/
void test_hash_map_insert(void);
/**
* This function checks the hashmap_at function of the hashmap library.
* If hashmap_at fails at some points, the functions exits with exit code 1.
*/
void test_hash_map_at(void);
/**
* This function checks the hashmap_erase function of the hashmap library.
* If hashmap_erase fails at some points, the functions exits with exit code 1.
*/
void test_hash_map_erase(void);
/**
* This function checks the hashmap_get_load_factor function of the hashmap library.
* If hashmap_get_load_factor fails at some points, the functions exits with exit code 1.
*/
void test_hash_map_get_load_factor(void);
/**
* This function checks the HashMapGetApplyIf function of the hashmap library.
* If HashMapGetApplyIf fails at some points, the functions exits with exit code 1.
*/
void test_hash_map_apply_if();
#endif //TESTSUITE_H_