- Updated Coding Standards and adjusted code to fit.

- Restructured test for organization purposes
This commit is contained in:
2025-06-12 13:03:50 -04:00
parent b7e1b1ff62
commit e50cfb6e64
35 changed files with 384 additions and 163 deletions

View File

@@ -1,5 +1,5 @@
// =====================================================================================================================
// fennec, a free and open source game engine
// fennec-test, a program to execute unit tests for fennec
// Copyright © 2025 Medusa Slockbower
//
// This program is free software: you can redistribute it and/or modify
@@ -17,8 +17,8 @@
// =====================================================================================================================
#ifndef TEST_VECTOR_H
#define TEST_VECTOR_H
#ifndef FENNEC_TEST_VECTOR_H
#define FENNEC_TEST_VECTOR_H
#include <iostream>
@@ -33,9 +33,9 @@ namespace fennec
namespace test
{
inline void fennec_test_vector()
inline void fennec_test_math_vector()
{
fennec_test_section(component_count);
fennec_test_section("component_count");
fennec_test_spacer(1);
@@ -146,7 +146,7 @@ inline void fennec_test_vector()
fennec_test_spacer(2);
fennec_test_section(vec2 constructors);
fennec_test_section("vec2 constructors");
fennec_test_spacer(1);
@@ -161,7 +161,7 @@ inline void fennec_test_vector()
fennec_test_spacer(2);
fennec_test_section(vec2 swizzles);
fennec_test_section("vec2 swizzles");
fennec_test_spacer(1);
@@ -172,7 +172,7 @@ inline void fennec_test_vector()
fennec_test_spacer(2);
fennec_test_section(vec3 constructors);
fennec_test_section("vec3 constructors");
fennec_test_spacer(1);
@@ -187,7 +187,7 @@ inline void fennec_test_vector()
fennec_test_spacer(2);
fennec_test_section(vec3 swizzles);
fennec_test_section("vec3 swizzles");
fennec_test_spacer(1);
@@ -233,7 +233,7 @@ inline void fennec_test_vector()
fennec_test_spacer(2);
fennec_test_section(scalar-vector operations);
fennec_test_section("scalar-vector operations");
fennec_test_spacer(1);
@@ -249,7 +249,7 @@ inline void fennec_test_vector()
fennec_test_spacer(2);
fennec_test_section(vector-vector operations);
fennec_test_section("vector-vector operations");
fennec_test_spacer(1);
@@ -288,4 +288,4 @@ inline void fennec_test_vector()
}
#endif //TEST_VECTOR_H
#endif // FENNEC_TEST_VECTOR_H