@@ -47,7 +47,7 @@ namespace // anonymous – only for this translation unit
47
47
// -------------------------------------------------------------------------------------------------
48
48
// Test‑fixture: creates a unit cube at the origin for *a*
49
49
// -------------------------------------------------------------------------------------------------
50
- class UnitTestGJK : public ::testing::Test
50
+ class unit_test_gjk : public ::testing::Test
51
51
{
52
52
protected:
53
53
Box a;
@@ -62,7 +62,7 @@ class UnitTestGJK : public ::testing::Test
62
62
// -------------------------------------------------------------------------------------------------
63
63
// 1. Separated cubes – both intersects() and penetration_vector() must report *no collision*
64
64
// -------------------------------------------------------------------------------------------------
65
- TEST_F (UnitTestGJK , NoIntersection)
65
+ TEST_F (unit_test_gjk , NoIntersection)
66
66
{
67
67
b = make_box ( 5 .f , 0 .f , 0 .f , 1 .f , 1 .f , 1 .f ); // far away along +X
68
68
@@ -73,7 +73,7 @@ TEST_F(UnitTestGJK, NoIntersection)
73
73
// -------------------------------------------------------------------------------------------------
74
74
// 2. Just‑touching faces – still considered *no* intersection (distance == 0)
75
75
// -------------------------------------------------------------------------------------------------
76
- TEST_F (UnitTestGJK , TouchingFaces)
76
+ TEST_F (unit_test_gjk , TouchingFaces)
77
77
{
78
78
b = make_box ( 2 .f , 0 .f , 0 .f , 1 .f , 1 .f , 1 .f ); // faces touch at X = 1
79
79
@@ -84,7 +84,7 @@ TEST_F(UnitTestGJK, TouchingFaces)
84
84
// -------------------------------------------------------------------------------------------------
85
85
// 3. Overlapping cubes – intersects() must return true, MTV magnitude along x = 1.5
86
86
// -------------------------------------------------------------------------------------------------
87
- TEST_F (UnitTestGJK , OverlapWithMTV)
87
+ TEST_F (unit_test_gjk , OverlapWithMTV)
88
88
{
89
89
b = make_box ( 0 .5f , 0 .f , 0 .f , 1 .f , 1 .f , 1 .f ); // centres 0.5 apart → 1.5 units penetration on X
90
90
@@ -110,7 +110,7 @@ TEST_F(UnitTestGJK, OverlapWithMTV)
110
110
// -------------------------------------------------------------------------------------------------
111
111
// 4. Slanted overlap – verify MTV points along shortest axis
112
112
// -------------------------------------------------------------------------------------------------
113
- TEST_F (UnitTestGJK , OverlapOffAxis)
113
+ TEST_F (unit_test_gjk , OverlapOffAxis)
114
114
{
115
115
// Cube *b* overlaps *a* by 0.5 on X and 0.2 on Y. The MTV should choose the Y‑axis because
116
116
// it requires the smaller translation (0.2 < 0.5).
@@ -136,7 +136,7 @@ TEST_F(UnitTestGJK, OverlapOffAxis)
136
136
// -------------------------------------------------------------------------------------------------
137
137
// 5. Degenerate case – identical cubes totally overlapping (a == b)
138
138
// -------------------------------------------------------------------------------------------------
139
- TEST_F (UnitTestGJK , IdenticalVolumes)
139
+ TEST_F (unit_test_gjk , IdenticalVolumes)
140
140
{
141
141
b = a; // perfectly coincident
142
142
0 commit comments