Add munit for unit testing.

Main method extracted to separate file to make it easier to test the _rest_ of the code.
munit is added as a submodule by running `cd src; git submodule add https://github.com/nemequ/munit.git` .

Unit testing has so far only been tested on ubuntu.
This commit is contained in:
welcor 2024-05-18 21:21:17 +02:00
parent 455e3a06ea
commit eb8e200a31
11 changed files with 280 additions and 1 deletions

10
src/test/test_handler.h Normal file
View file

@ -0,0 +1,10 @@
#include "testrunner.h"
#ifndef TEST_HANDLER_H
#define TEST_HANDLER_H
extern MunitTest handler_c_tests[];
UNIT_TEST(test_get_number);
#endif