mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-21 10:40:53 +03:00
20 lines
320 B
C++
20 lines
320 B
C++
#ifndef unit_tests_hh_INCLUDED
|
|
#define unit_tests_hh_INCLUDED
|
|
|
|
namespace Kakoune
|
|
{
|
|
|
|
struct UnitTest
|
|
{
|
|
UnitTest(void (*func)()) : func(func), next(list) { list = this; }
|
|
void (*func)();
|
|
const UnitTest* next;
|
|
|
|
static void run_all_tests();
|
|
static UnitTest* list;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // unit_tests_hh_INCLUDED
|