forked from kyonshi/grenzland-mud
Renamed test files to match pattern from src
Also, started setup for testing do_remove and introduced a bit of shorthand macros.
This commit is contained in:
@@ -19,8 +19,15 @@
|
||||
#include "../mud_event.h"
|
||||
#include "../munit/munit.h"
|
||||
|
||||
|
||||
/**
|
||||
* Utility macro for defining tests.
|
||||
*/
|
||||
#define UNIT_TEST(test_name) MunitResult (test_name)(const MunitParameter params[], void* data)
|
||||
|
||||
/*
|
||||
* A "standard test" needs no setup or teardown and doesn't take any parameters.
|
||||
* This is a utility macro for the test suite listing.
|
||||
*/
|
||||
#define STD_TEST(test_name, test_fun) { (char *)(test_name), (test_fun), NULL, NULL, MUNIT_TEST_OPTION_NONE, NULL }
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user