Added unit tests for BigInt data type and updated docs

This commit is contained in:
2025-11-17 16:41:09 +01:00
parent f625862ad2
commit 9e419d09ac
11 changed files with 402 additions and 69 deletions

View File

@@ -1854,4 +1854,4 @@ bigint_result_t bigint_printf(const char *format, ...) {
SET_MSG(result, "Printf completed successfully");
return result;
}
}

View File

@@ -61,4 +61,4 @@ bigint_result_t bigint_printf(const char *format, ...);
}
#endif
#endif
#endif

View File

@@ -37,7 +37,7 @@ uint64_t hash_key(const char *key) {
*
* Returns a map_result_t data type containing a new hash map
*/
map_result_t map_new() {
map_result_t map_new(void) {
map_result_t result = {0};
map_t *map = malloc(sizeof(map_t));

View File

@@ -53,7 +53,7 @@ typedef struct {
extern "C" {
#endif
map_result_t map_new();
map_result_t map_new(void);
map_result_t map_add(map_t *map, const char *key, void *value);
map_result_t map_get(const map_t *map, const char *key);
map_result_t map_remove(map_t *map, const char *key);