Fixing hashset and hashmap error with a pointer data type and adding a test to address that
This commit is contained in:
1 parent
f0b763afba
commit
d89972c621
4 files changed
+34
-5
No files matched your search
@@ -0,0 +1,24 @@
|
||||
// Tests all containers if they accept a pinter type
|
||||
// Compile with -Wall -Wextra
|
||||
#include "../src/macro_collections.h"
|
||||
#include <stdio.h>
|
||||
|
||||
COLLECTION_GENERATE(LIST, PUBLIC, l, list, /* FMOD */, /* K */, char *)
|
||||
COLLECTION_GENERATE(STACK, PUBLIC, s, stack, /* FMOD */, /* K */, char *)
|
||||
COLLECTION_GENERATE(QUEUE, PUBLIC, q, queue, /* FMOD */, /* K */, char *)
|
||||
COLLECTION_GENERATE(DEQUE, PUBLIC, d, deque, /* FMOD */, /* K */, char *)
|
||||
COLLECTION_GENERATE(LINKEDLIST, PUBLIC, ll, linked, /* FMOD */, /* K */, char *)
|
||||
COLLECTION_GENERATE(HEAP, PUBLIC, h, heap, /* FMOD */, /* K */, char *)
|
||||
COLLECTION_GENERATE(TREESET, PUBLIC, ts, tset, /* FMOD */, /* K */, char *)
|
||||
COLLECTION_GENERATE(TREEMAP, PUBLIC, tm, tmap, /* FMOD */, char *, char *)
|
||||
COLLECTION_GENERATE(HASHSET, PUBLIC, hs, hset, /* FMOD */, /* K */, char *)
|
||||
COLLECTION_GENERATE(HASHMAP, PUBLIC, hm, hmap, /* FMOD */, char *, char *)
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printf("+--------------------------------------------------+\n");
|
||||
printf("| Pointer Data Type is Working |\n");
|
||||
printf("+--------------------------------------------------+\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user