2015-05-22 14:58:56 +02:00
|
|
|
#ifndef unit_tests_hh_INCLUDED
|
|
|
|
#define unit_tests_hh_INCLUDED
|
|
|
|
|
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
|
|
|
struct UnitTest
|
|
|
|
{
|
2015-05-24 23:34:05 +02:00
|
|
|
UnitTest(void (*func)()) : func(func), next(list) { list = this; }
|
2015-05-22 14:58:56 +02:00
|
|
|
void (*func)();
|
|
|
|
const UnitTest* next;
|
|
|
|
|
2015-05-24 23:34:05 +02:00
|
|
|
static void run_all_tests();
|
|
|
|
static UnitTest* list;
|
|
|
|
};
|
2015-05-22 14:58:56 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // unit_tests_hh_INCLUDED
|