#include #include "test/Test.h" #include "tests/ArrayListTests.h" #include "tests/ArrayStringTests.h" #include "tests/ArrayTests.h" #include "tests/BitArrayTests.h" #include "tests/HashMapTests.h" #include "tests/LinkedListTests.h" #include "tests/ListTests.h" #include "tests/MathTests.h" #include "tests/RingBufferTests.h" #include "tests/StackTests.h" #include "tests/UniquePointerTests.h" #include "tests/UtilityTests.h" #include "utils/Utility.h" static void onExit(int code, void* data) { unsigned int i = *static_cast(data); printf("Hello from exit %d: 0x%x\n", code, i); } int main() { Core::ArrayListTests::test(); Core::ArrayStringTests::test(); Core::ArrayTests::test(); Core::BitArrayTests::test(); Core::HashMapTests::test(); Core::LinkedListTests::test(); Core::ListTests::test(); Core::MathTests::test(); Core::RingBufferTests::test(); Core::StackTests::test(); Core::UniquePointerTests::test(); Core::UtilityTests::test(); Core::Test::finalize(); unsigned int data = 0x1234; Core::setExitHandler(onExit, &data); Core::exitWithHandler(0); return 0; }