kakoune/src/unit_tests.hh

20 lines
320 B
C++
Raw Normal View History

#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; }
void (*func)();
const UnitTest* next;
2015-05-24 23:34:05 +02:00
static void run_all_tests();
static UnitTest* list;
};
}
#endif // unit_tests_hh_INCLUDED