test updates for test_ds unit testing

This commit is contained in:
Sean Barrett 2019-02-25 13:49:37 -08:00
parent f9133c3677
commit 72990efc3e
2 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@
#define STB_VOXEL_RENDER_IMPLEMENTATION #define STB_VOXEL_RENDER_IMPLEMENTATION
#define STB_CONNECTED_COMPONENTS_IMPLEMENTATION #define STB_CONNECTED_COMPONENTS_IMPLEMENTATION
#define STB_DS_IMPLEMENTATION #define STB_DS_IMPLEMENTATION
#define STBDS_UNIT_TESTS
#define STBI_MALLOC my_malloc #define STBI_MALLOC my_malloc
#define STBI_FREE my_free #define STBI_FREE my_free

View File

@ -43,6 +43,7 @@ void churn(int a, int b, int count)
} }
#ifdef DS_TEST #ifdef DS_TEST
#include <stdio.h>
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
stbds_unit_tests(); stbds_unit_tests();
@ -54,6 +55,7 @@ int main(int argc, char **argv)
churn(200,500, 5000); churn(200,500, 5000);
churn(2000,5000, 500); churn(2000,5000, 500);
churn(20000,50000, 50); churn(20000,50000, 50);
printf("Ok!");
return 0; return 0;
} }
#endif #endif