mirror of
https://github.com/guezoloic/t3dsr.git
synced 2026-01-25 12:34:24 +00:00
fix: rework tests using unity test framework.
This commit is contained in:
@@ -1,43 +1,19 @@
|
||||
#include "test_vec.h"
|
||||
#include "unity/unity.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define SUCCESS(X) printf("\n--------- All %s tests succeeded ---------\n\n", X);
|
||||
void setUp() {}
|
||||
void tearDown() {}
|
||||
|
||||
int main() {
|
||||
|
||||
// --- Vector3 ---
|
||||
|
||||
addVector3_test();
|
||||
subVector3_test();
|
||||
scalVector3_test();
|
||||
dotVector3_test();
|
||||
lenVector3_test();
|
||||
normVector3_test();
|
||||
lerpVector3_test();
|
||||
crosVector3_test();
|
||||
anglVector3_test();
|
||||
projVector3_test();
|
||||
reflVector3_test();
|
||||
distVector3_test();
|
||||
rotaVector3_test();
|
||||
SUCCESS("Vector3");
|
||||
UNITY_BEGIN();
|
||||
|
||||
// --- Vector4 ---
|
||||
|
||||
addVector4_test();
|
||||
subVector4_test();
|
||||
scaleVector4_test();
|
||||
dotVector4_test();
|
||||
lenVector4_test();
|
||||
normVector4_test();
|
||||
lerpVector4_test();
|
||||
anglVector4_test();
|
||||
projVector4_test();
|
||||
reflVector4_test();
|
||||
distVector4_test();
|
||||
SUCCESS("Vector4");
|
||||
runVector3_test();
|
||||
runVector4_test();
|
||||
|
||||
SUCCESS("");
|
||||
UNITY_END();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user