Упрощение тестов
This commit is contained in:
parent
fcf793c758
commit
7f242c4b63
71 changed files with 518 additions and 943 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "helpers.h"
|
||||
|
||||
|
|
@ -15,11 +16,17 @@ void print_testing_name(const char * name)
|
|||
|
||||
void print_testing_success()
|
||||
{
|
||||
puts("[ Success ]\n");
|
||||
puts("[ \x1b[32mSuccess\x1b[0m ]");
|
||||
}
|
||||
|
||||
void print_testing_failed(const char* message)
|
||||
void print_testing_error(const char * message)
|
||||
{
|
||||
printf("[ Failed: %s ]\n", message);
|
||||
printf("[ \x1b[31mFailed\x1b[0m: %s ]\n", message);
|
||||
exit(TEST_FAILED);
|
||||
}
|
||||
|
||||
void print_testing_failed()
|
||||
{
|
||||
puts("[ \x1b[31mFailed\x1b[0m ]");
|
||||
exit(TEST_FAILED);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,15 +3,53 @@
|
|||
|
||||
#include <basic-geometry.h>
|
||||
|
||||
#define TEST_SUCCESS 0
|
||||
#define TEST_SUCCES 0
|
||||
#define TEST_FAILED 1
|
||||
|
||||
// =================== Number =================== //
|
||||
|
||||
typedef struct {
|
||||
float number1, number2;
|
||||
} TestNumberPairFP32;
|
||||
|
||||
typedef struct {
|
||||
double number1, number2;
|
||||
} TestNumberPairFP64;
|
||||
|
||||
// ================== Vector2 =================== //
|
||||
|
||||
// ================== Vector3 =================== //
|
||||
|
||||
// ================= Quaternion ================= //
|
||||
|
||||
// =================== Versor =================== //
|
||||
|
||||
typedef struct {
|
||||