- Updated Coding Standards and adjusted code to fit.
- Restructured test for organization purposes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// =====================================================================================================================
|
||||
// fennec, a free and open source game engine
|
||||
// Copyright (C) 2025 Medusa Slockbower
|
||||
// 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
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -17,8 +17,8 @@
|
||||
// =====================================================================================================================
|
||||
|
||||
|
||||
#ifndef TEST_GEOMETRIC_H
|
||||
#define TEST_GEOMETRIC_H
|
||||
#ifndef FENNEC_TEST_GEOMETRIC_H
|
||||
#define FENNEC_TEST_GEOMETRIC_H
|
||||
|
||||
#include <fennec/math/geometric.h>
|
||||
#include <fennec/math/trigonometric.h>
|
||||
@@ -31,10 +31,8 @@ namespace fennec
|
||||
namespace test
|
||||
{
|
||||
|
||||
inline void fennec_test_geometric()
|
||||
inline void fennec_test_math_geometric()
|
||||
{
|
||||
fennec_test_section(geometric functions);
|
||||
|
||||
fennec_test_spacer(1);
|
||||
|
||||
fennec_test_run(fennec::dot(vec2(1, 2), vec2(1, 2)), 5.0f);
|
||||
@@ -77,4 +75,4 @@ inline void fennec_test_geometric()
|
||||
}
|
||||
|
||||
|
||||
#endif // TEST_GEOMETRIC_H
|
||||
#endif // FENNEC_TEST_GEOMETRIC_H
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// =====================================================================================================================
|
||||
// fennec, a free and open source game engine
|
||||
// Copyright (C) 2025 Medusa Slockbower
|
||||
// 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
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -32,7 +32,7 @@ namespace fennec
|
||||
namespace test
|
||||
{
|
||||
|
||||
inline void fennec_test_matrix()
|
||||
inline void fennec_test_math_matrix()
|
||||
{
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// =====================================================================================================================
|
||||
// fennec, a free and open source game engine
|
||||
// Copyright (C) 2025 Medusa Slockbower
|
||||
// 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
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -17,8 +17,8 @@
|
||||
// =====================================================================================================================
|
||||
|
||||
|
||||
#ifndef TEST_SCALAR_H
|
||||
#define TEST_SCALAR_H
|
||||
#ifndef FENNEC_TEST_SCALAR_H
|
||||
#define FENNEC_TEST_SCALAR_H
|
||||
|
||||
#include <fennec/math/vector_traits.h>
|
||||
|
||||
@@ -30,9 +30,9 @@ namespace fennec
|
||||
namespace test
|
||||
{
|
||||
|
||||
inline void fennec_test_scalar()
|
||||
inline void fennec_test_math_scalar()
|
||||
{
|
||||
fennec_test_section(component_count);
|
||||
fennec_test_section("component_count");
|
||||
|
||||
fennec_test_spacer(1);
|
||||
|
||||
@@ -71,4 +71,4 @@ inline void fennec_test_scalar()
|
||||
|
||||
}
|
||||
|
||||
#endif //TEST_SCALAR_H
|
||||
#endif // FENNEC_TEST_SCALAR_H
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user