diff --git a/tests/test_cpp_compilation.cpp b/tests/test_cpp_compilation.cpp index 88e9532..558a236 100644 --- a/tests/test_cpp_compilation.cpp +++ b/tests/test_cpp_compilation.cpp @@ -16,6 +16,7 @@ #define STB_VOXEL_RENDER_IMPLEMENTATION #define STB_CONNECTED_COMPONENTS_IMPLEMENTATION #define STB_DS_IMPLEMENTATION +#define STBDS_UNIT_TESTS #define STBI_MALLOC my_malloc #define STBI_FREE my_free diff --git a/tests/test_ds.c b/tests/test_ds.c index d4a6527..fce99df 100644 --- a/tests/test_ds.c +++ b/tests/test_ds.c @@ -43,6 +43,7 @@ void churn(int a, int b, int count) } #ifdef DS_TEST +#include int main(int argc, char **argv) { stbds_unit_tests(); @@ -54,6 +55,7 @@ int main(int argc, char **argv) churn(200,500, 5000); churn(2000,5000, 500); churn(20000,50000, 50); + printf("Ok!"); return 0; } #endif