Mercurial
diff dowa/dowa_test.c @ 22:947b81010aba
[Dowa & Seobeo] Updated so that Dowa hashmaps can use arena and not be broken. Split up web so taht it can handle different paths. Also fixes issues with hash collisions which was pain in the ass.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Tue, 07 Oct 2025 07:11:02 -0700 |
| parents | 09def63429b9 |
| children | a30944e5719e |
line wrap: on
line diff
--- a/dowa/dowa_test.c Mon Oct 06 10:57:30 2025 -0700 +++ b/dowa/dowa_test.c Tue Oct 07 07:11:02 2025 -0700 @@ -96,17 +96,20 @@ Dowa_HashMap_Print(map2); Dowa_HashMap_Destroy(map2); + printf("[Map2] destroyed (no change)\n\n"); Dowa_Arena_Destroy(mapArena); - printf("[Map2 & Arena] destroyed\n\n"); + printf("[Arena] destroyed (all null)\n\n"); // --- Test Cache_Folder --- // Ensure there is a directory "./dowa/test_folder" with some files for this test to succeed. int cache_result = Dowa_HashMap_Cache_Folder(map, "dowa/test_folder"); printf("[Cache_Folder] returned %d\n", cache_result); - if (cache_result == 0) { + if (cache_result == 0) + { printf("=== Map After Caching 'dowa/test_folder' ===\n"); Dowa_HashMap_Print(map); - } else { + }else + { printf("Cache_Folder failed (ensure 'dowa/test_folder' exists with files)\n"); }