test updates for test_ds unit testing
This commit is contained in:
parent
f9133c3677
commit
72990efc3e
@ -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
|
||||
|
@ -43,6 +43,7 @@ void churn(int a, int b, int count)
|
||||
}
|
||||
|
||||
#ifdef DS_TEST
|
||||
#include <stdio.h>
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user