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:
parent
b90c9936b8
commit
b0dbe51210
@ -12,11 +12,11 @@
|
||||
|
||||
#if SELF_TEST
|
||||
|
||||
/// A simple self-test that is executed on program start, used to verify bbox functionality
|
||||
class SelfTest
|
||||
/** A simple self-test that is executed on program start, used to verify bbox functionality */
|
||||
static class SelfTest_BoundingBox
|
||||
{
|
||||
public:
|
||||
SelfTest(void)
|
||||
SelfTest_BoundingBox(void)
|
||||
{
|
||||
Vector3d Min(1, 1, 1);
|
||||
Vector3d Max(2, 2, 2);
|
||||
@ -61,9 +61,9 @@ public:
|
||||
}
|
||||
}
|
||||
} // for i - LineDefs[]
|
||||
fprintf(stderr,"BoundingBox selftest complete.");
|
||||
fprintf(stderr, "BoundingBox selftest complete.\n");
|
||||
}
|
||||
} Test;
|
||||
} gTest;
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user