1
0

Fixed cBoundingBox self-test code-style.

Also made the class name unique and the global variable static, to avoid linkage problems with other self-tests
This commit is contained in:
madmaxoft 2014-02-16 23:30:50 +01:00
parent b90c9936b8
commit b0dbe51210

View File

@ -12,11 +12,11 @@
#if SELF_TEST #if SELF_TEST
/// A simple self-test that is executed on program start, used to verify bbox functionality /** A simple self-test that is executed on program start, used to verify bbox functionality */
class SelfTest static class SelfTest_BoundingBox
{ {
public: public:
SelfTest(void) SelfTest_BoundingBox(void)
{ {
Vector3d Min(1, 1, 1); Vector3d Min(1, 1, 1);
Vector3d Max(2, 2, 2); Vector3d Max(2, 2, 2);
@ -61,9 +61,9 @@ public:
} }
} }
} // for i - LineDefs[] } // for i - LineDefs[]
fprintf(stderr,"BoundingBox selftest complete."); fprintf(stderr, "BoundingBox selftest complete.\n");
} }
} Test; } gTest;
#endif #endif