TestTests.c 605 B

12345678910111213141516171819202122232425
  1. #include "../Tests.h"
  2. #include "core/Vector.h"
  3. void coreTestTest() {
  4. CORE_TEST_BOOL(false, true);
  5. CORE_TEST_INT(0, 1);
  6. CORE_TEST_I64(0, 1);
  7. CORE_TEST_U64(0, 1);
  8. CORE_TEST_SIZE(0, 1);
  9. CORE_TEST_STRING("a", "b");
  10. CORE_TEST_FALSE(true);
  11. CORE_TEST_TRUE(false);
  12. CORE_TEST_NULL(&(int){0});
  13. CORE_TEST_NOT_NULL(nullptr);
  14. CORE_TEST_FLOAT(0.0f, 1.0f, 0.1f);
  15. CoreVector2 a = {{0, 1}};
  16. CoreVector2 b = {{2, 3}};
  17. CORE_TEST_V2(&a, &b);
  18. CoreIntVector2 ia = {{0, 1}};
  19. CoreIntVector2 ib = {{2, 3}};
  20. CORE_TEST_IV2(&ia, &ib);
  21. coreFinalizeTests();
  22. }