From 72990efc3e4e27fbd4b1130bb11353ef7ea2e2e6 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Mon, 25 Feb 2019 13:49:37 -0800 Subject: [PATCH] test updates for test_ds unit testing --- tests/test_cpp_compilation.cpp | 1 + tests/test_ds.c | 2 ++ 2 files changed, 3 insertions(+) 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