Main.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #include "Test.hpp"
  2. #include "Tests.hpp"
  3. #include "core/utils/ArrayString.hpp"
  4. #include "core/utils/Utility.hpp"
  5. static void onExit(int code, void* data) {
  6. unsigned int i = *static_cast<unsigned int*>(data);
  7. Core::String32<1024> s;
  8. CORE_TEST_ERROR(s.append("Hello from exit #: #"));
  9. CORE_TEST_ERROR(s.format(code, i));
  10. CORE_TEST_ERROR(s.printLine());
  11. Core::Test::finalize();
  12. }
  13. int main(int argAmount, const char**) {
  14. bool light = argAmount <= 1;
  15. Core::testArrayList(light);
  16. Core::testArrayString();
  17. Core::testArray();
  18. Core::testBitArray();
  19. Core::testBox();
  20. Core::testBuffer(light);
  21. Core::testBufferedValue();
  22. Core::testClock(light);
  23. Core::testColor();
  24. Core::testComponents();
  25. Core::testFileReader();
  26. Core::testFrustum();
  27. Core::testHashMap(light);
  28. Core::testLinkedList(light);
  29. Core::testList(light);
  30. Core::testMath();
  31. Core::testMatrixStack(light);
  32. Core::testMatrix();
  33. Core::testPlane();
  34. Core::testProbingHashMap(light);
  35. Core::testQuaternion();
  36. Core::testRandom(light);
  37. Core::testRingBuffer();
  38. Core::testStack(light);
  39. Core::testThread();
  40. Core::testUniquePointer();
  41. Core::testUtility();
  42. Core::testVector();
  43. Core::testView();
  44. unsigned int data = 123456789;
  45. Core::setExitHandler(onExit, &data);
  46. CORE_EXIT(1);
  47. return 0;
  48. }