mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-25 02:16:10 +01:00
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:
parent
455e3a06ea
commit
eb8e200a31
11 changed files with 280 additions and 1 deletions
10
src/test/test_handler.h
Normal file
10
src/test/test_handler.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue