12345678910111213141516171819202122232425262728293031323334353637 |
- #include <stdio.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/UniquePointerTests.h"
- #include "tests/UtilityTests.h"
- #include "utils/Utility.h"
- static void onExit(int code, void* data) {
- unsigned int i = *static_cast<unsigned int*>(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::UniquePointerTests::test();
- Core::UtilityTests::test();
- unsigned int data = 0x1234;
- Core::setExitHandler(onExit, &data);
- Core::exitWithHandler(0);
- return 0;
- }
|