Skip to content
Myr

test updates for test_ds unit testing

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent f9133c3 · Browse files · 2 files+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−0 removed

  • tests:+3 added−0 removed

2 files+3 added−0 removed

modified:tests/test_cpp_compilation.cpp+1 added
14 unmodified lines
15#define STB_RECT_PACK_IMPLEMENTATION16#define STB_VOXEL_RENDER_IMPLEMENTATION17#define STB_CONNECTED_COMPONENTS_IMPLEMENTATION18#define STB_DS_IMPLEMENTATION19#define STBDS_UNIT_TESTS2021#define STBI_MALLOC my_malloc22#define STBI_FREE my_free23#define STBI_REALLOC my_realloc
128 unmodified lines
modified:tests/test_ds.c+2 added
41 unmodified lines
42 churn_deletes = (b-a) * n;43}4445#ifdef DS_TEST46#include <stdio.h>47int main(int argc, char **argv)48{49 stbds_unit_tests();50 churn(0,100,1);
3 unmodified lines
54 churn(10, 15, 25000);55 churn(200,500, 5000);56 churn(2000,5000, 500);57 churn(20000,50000, 50);58 printf("Ok!");59 return 0;60}61#endif62
356 unmodified lines