c-lings / clings

Equivalent of rustlings for C
5 stars 0 forks source link

6 is testing doubting #16

Closed ohmushi closed 6 months ago

ohmushi commented 6 months ago

Create tiny macros test-lib inspired by minunit. Add tests for sized_string and katas. Create a tree of cmakelist, each component is a library which refer to the test(s). Change the readme : remove vcpck ref and add the testing section. Refactoring allocation functions to take the allocator in param, with macros to define default allocator. This way we can test on allocation failure by passing our mock allocator.

Create an empty test for the executor because I think we should change the implementation to be more resilient on system call failures before/during the creation of the tests. I did not create tests for the handler because it is simply some printf in it.